summaryrefslogtreecommitdiff
path: root/sfeed_update
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2023-12-29 14:21:30 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2023-12-29 14:21:30 +0100
commit391a556d308fe19b22614498d8bdefab0c3016be (patch)
tree5a1e7e20c3d62df5ed430fa53129152f746dbbc6 /sfeed_update
parent19cc32850dde2fe3fff1f02d8470727b84a5f67b (diff)
sfeed_update: reword some comments
Diffstat (limited to 'sfeed_update')
-rwxr-xr-xsfeed_update11
1 files changed, 5 insertions, 6 deletions
diff --git a/sfeed_update b/sfeed_update
index 18096ea..fd468a5 100755
--- a/sfeed_update
+++ b/sfeed_update
@@ -163,10 +163,10 @@ _feed() {
# fetch and process a feed in parallel.
# feed(name, feedurl, [basesiteurl], [encoding])
feed() {
- # Job parameters for xargs.
- # Specify fields as a single parameter separated by the NUL separator.
- # These fields are split later by the child process, this allows xargs
- # with empty fields across many implementations.
+ # Output job parameters for xargs.
+ # Specify fields as a single parameter separated by a NUL byte.
+ # The parameter is split into fields later by the child process, this
+ # allows using xargs with empty fields across many implementations.
printf '%s\037%s\037%s\037%s\037%s\037%s\0' \
"${config}" "${sfeedtmpdir}" "$1" "$2" "$3" "$4"
}
@@ -238,7 +238,6 @@ if [ "${SFEED_UPDATE_CHILD}" = "1" ]; then
[ "$1" = "" ] && exit 0 # must have an argument set
printf '%s\n' "$1" | \
while read -r _config _tmpdir _name _feedurl _basesiteurl _encoding; do
- # load config file, sets $config.
loadconfig "${_config}"
sfeedtmpdir="${_tmpdir}"
_feed "${_name}" "${_feedurl}" "${_basesiteurl}" "${_encoding}"
@@ -248,5 +247,5 @@ if [ "${SFEED_UPDATE_CHILD}" = "1" ]; then
fi
# ...else parent mode:
-argv0="$0" # remember $0, in shells like zsh $0 is the function name.
+argv0="$0" # store $0, in the zsh shell $0 is the name of the function.
[ "${SFEED_UPDATE_INCLUDE}" = "1" ] || main "$@"