summaryrefslogtreecommitdiffstats
path: root/testing/txt2man/fixbashism.patch
blob: f31059d880e17e453adda43bcfe2bee691a6ab88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- ./bookman.orig
+++ ./bookman
@@ -83,9 +83,9 @@
 shift $(($OPTIND - 1))
 date=${date:-$(date +'%d %B %Y')}
 
-[[ $1 ]] || set -- $(while read; do echo $REPLY; done)
+[ -n "$1" ] || set -- $(while read REPLY; do echo $REPLY; done)
 
-[[ $outfile ]] && post="$post >$outfile"
+[ -n "$outfile" ] && post="$post >$outfile"
 
 {
 	# Compute table of content from postscript output.