B: Print usage message to stderr

B's usage message redirects its stderr to stdout instead of vice versa.
Fix this.

Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
This commit is contained in:
Jordan Niethe
2025-09-06 17:16:36 +10:00
committed by Dan Cross
parent a20cff92cf
commit bafcdddd31

2
bin/B
View File

@@ -15,7 +15,7 @@ fi
if [ $# -eq 0 ]
then
echo 'usage: B [+line] file...' 2>&1
echo 'usage: B [+line] file...' 1>&2
exit 1
fi