summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-12-09 21:51:45 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-12-09 21:52:08 +0100
commit63308527f5197ddbcad6b06c5c1bbaf12f997e57 (patch)
tree8299da46bec290cfc3a2701c966146c3a3b5fde8 /README
parentda8adbc02e4667a68077e5f0cab8548e2bb81c1b (diff)
improve compatibility with zsh as a non-interactive shell
In zsh the variables $path and $status are special. https://zsh.sourceforge.io/Doc/Release/Parameters.html#index-path https://zsh.sourceforge.io/Doc/Release/Parameters.html#index-status (No promises I will keep up with this insanity in the future though)
Diffstat (limited to 'README')
-rw-r--r--README6
1 files changed, 3 insertions, 3 deletions
diff --git a/README b/README
index 8098a76..85a3fb9 100644
--- a/README
+++ b/README
@@ -752,12 +752,12 @@ sfeed_update_xargs shellscript:
mkdir -p "${sfeedpath}"
# print feeds for parallel processing with xargs.
feeds | SFEED_UPDATE_CHILD="1" xargs -r -0 -P "${maxjobs}" -L 6 "$(readlink -f "$0")"
- status=$?
+ statuscode=$?
# check error exit status indicator for parallel jobs.
- test -f "${sfeedtmpdir}/ok" || status=1
+ test -f "${sfeedtmpdir}/ok" || statuscode=1
# cleanup temporary files etc.
cleanup
- exit ${status}
+ exit ${statuscode}
- - -