From: Paul Hänsch Date: Tue, 15 Aug 2023 11:14:09 +0000 (+0200) Subject: minor fixes in <> X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=46ce00db07a1223da8d0edc585aa2326418a3c6b;p=shellwiki minor fixes in <> --- diff --git a/macros/pagelist b/macros/pagelist index 86befb4..ed4ddbe 100755 --- a/macros/pagelist +++ b/macros/pagelist @@ -16,9 +16,9 @@ while [ $# -gt 0 ]; do case $1 in esac; done [ "$dir" ] || dir=* -[ "$depth" -ge 0 -o "$depth" -le 0 ] 2>&0 || depth=0 +[ "$depth" -ge 0 -o "$depth" -le 0 ] 2>&- || depth=0 -printf '
    \n' +printf '
      \n' page_glob "$dir" "$depth" \ | while read -r glob; do printf %s\\n "$glob"