diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-05-18 18:23:25 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-05-18 18:23:25 +0300 |
commit | fe3535dbeec8f3f0fca9e6b895c993e59846e103 (patch) | |
tree | 10a20d25edf32adb45739ce6f2cc626b98a7391d /doc/sciteco.1.in | |
parent | 394fe39825cf4fc2f12ad511d8fea2bb61ee4837 (diff) | |
download | sciteco-fe3535dbeec8f3f0fca9e6b895c993e59846e103.tar.gz |
allow process exit status to be determined by macros
* Any value left on the numeric stack now determines the exit code.
This ensures you can call n^C as the SciTECO version of exit(n).
It will also work with n$$ in the top level macro.
But you don't necessarily need any of these commands.
* Could be useful in shell scripting as in
`sciteco -e "@EB/file/ :@S/foo/\"F1'"` to fail `foo` is not found.
Diffstat (limited to 'doc/sciteco.1.in')
-rw-r--r-- | doc/sciteco.1.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/sciteco.1.in b/doc/sciteco.1.in index f57415c..c7ad1a9 100644 --- a/doc/sciteco.1.in +++ b/doc/sciteco.1.in @@ -223,7 +223,12 @@ Execute \(lqsciteco --help\(rq for more details. .SCITECO_TOPIC status . \*(ST will return a non-null exit code if an error occurred during -batch mode processing. +batch mode processing \(em usually 1 on UNIX. +Otherwise the top value on the numeric stack will determine +the process' exit code as if passed to libc's +.BR exit (3) +function. +On UNIX systems only numbers between 0 and 255 may be meaningfull. . . .SH ENVIRONMENT |