git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0f85db9) | patch
Add SHELL_ERROR and SHELL_EXIT_CODE magic variables to psql.
2023年3月21日 17:03:42 +0000 (13:03 -0400)
2023年3月21日 17:03:56 +0000 (13:03 -0400)
commit b0d8f2d983cb25d1035fae1cd7de214dd67809b4
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
doc/src/sgml/ref/psql-ref.sgml diff | blob | blame | history
src/bin/psql/command.c diff | blob | blame | history
src/bin/psql/help.c diff | blob | blame | history
src/bin/psql/psqlscanslash.l diff | blob | blame | history
src/common/wait_error.c diff | blob | blame | history
src/include/port.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /