postgresql/src/bin/psql
Tom Lane b0d8f2d983 Add SHELL_ERROR and SHELL_EXIT_CODE magic variables to psql.
These are set after a \! command or a backtick substitution.
SHELL_ERROR is just "true" for error (nonzero exit status) or "false"
for success, while SHELL_EXIT_CODE records the actual exit status
following standard shell/system(3) conventions.

Corey Huinker, reviewed by Maxim Orlov and myself

Discussion: https://postgr.es/m/CADkLM=cWao2x2f+UDw15W1JkVFr_bsxfstw=NGea7r9m4j-7rQ@mail.gmail.com
2023-03-21 13:03:56 -04:00
..
po Update copyright for 2023 2023-01-02 15:00:37 -05:00
t Improve handling of psql \watch's interval argument 2023-03-16 09:32:36 +09:00
.gitignore Add basic TAP tests for psql's tab-completion logic. 2020-01-02 15:02:21 -05:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
command.c Add SHELL_ERROR and SHELL_EXIT_CODE magic variables to psql. 2023-03-21 13:03:56 -04:00
command.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
common.c Zero initialize uses of instr_time about to trigger compiler warnings 2023-01-20 21:16:47 -08:00
common.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
copy.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
copy.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
create_help.pl Fix failure with perlcritic in psql's create_help.pl 2023-01-19 10:01:53 +09:00
crosstabview.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
crosstabview.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
describe.c Allow tailoring of ICU locales with custom rules 2023-03-08 16:56:37 +01:00
describe.h psql: Add support for \dpS and \zS. 2023-01-07 11:09:26 +00:00
help.c Add SHELL_ERROR and SHELL_EXIT_CODE magic variables to psql. 2023-03-21 13:03:56 -04:00
help.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
input.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
input.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
large_obj.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
large_obj.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
mainloop.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
mainloop.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
nls.mk Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
prompt.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
prompt.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
psqlrc.sample Improve FILES section of psql reference page. 2014-01-14 19:27:57 -05:00
psqlscanslash.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
psqlscanslash.l Add SHELL_ERROR and SHELL_EXIT_CODE magic variables to psql. 2023-03-21 13:03:56 -04:00
settings.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
startup.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
stringutils.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
stringutils.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
tab-complete.c Add a DEFAULT option to COPY FROM 2023-03-13 10:01:56 -04:00
tab-complete.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
variables.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
variables.h Update copyright for 2023 2023-01-02 15:00:37 -05:00