source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Use [ rather than [[ for portability, in particular since it
@ 2017-05-18 14:46 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2017-05-18 14:46 UTC (permalink / raw)
  To: source

Log Message:
-----------
Use [ rather than [[ for portability,
in particular since it makes no difference in the case at hand.
Reported by Leah Neukirchen <leah at vuxu dot org> (Void Linux).

Modified Files:
--------------
    mdocml:
        gmdiff

Revision Data
-------------
Index: gmdiff
===================================================================
RCS file: /home/cvs/mdocml/mdocml/gmdiff,v
retrieving revision 1.5
retrieving revision 1.6
diff -Lgmdiff -Lgmdiff -u -p -r1.5 -r1.6
--- gmdiff
+++ gmdiff
@@ -43,7 +43,7 @@ while [ -n "$1" ]; do
   ${MANDOC:=mandoc} -Ios='OpenBSD ports' $MOPT $file \
     2> /tmp/mandoc.err > /tmp/mandoc.out
   for i in roff mandoc; do
-    [[ -s /tmp/$i.err ]] && echo "$i errors:" && cat /tmp/$i.err
+    [ -s /tmp/$i.err ] && echo "$i errors:" && cat /tmp/$i.err
   done
   diff -au /tmp/roff.out /tmp/mandoc.out 2>&1
 done
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-18 14:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-18 14:46 mdocml: Use [ rather than [[ for portability, in particular since it schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).