tgv has decided to rename all its -foo options to --foo.  sigh. - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit c530c004213e6e95775d7a6402923d0d58d1e114
 (DIR) parent 10ff532fdcff507f0bc55be5faef3782cd2e595f
 (HTM) Author: rsc <devnull@localhost>
       Date:   Mon, 28 Feb 2005 18:58:23 +0000
       
       gv has decided to rename all its -foo options to --foo.  sigh.
       
       Diffstat:
         M bin/psv                             |      12 +++++++++++-
       
       1 file changed, 11 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/bin/psv b/bin/psv
       t@@ -1,3 +1,13 @@
        #!/bin/sh
        
       -gv -nosafer -swap -style $PLAN9/lib/gv.style -ad $PLAN9/lib/gv.resource "$@"
       +# 
       +# gv has decided to rename all its -foo options to --foo.
       +# 
       +if gv -v 2>/dev/null | grep Usage >/dev/null
       +then
       +        m=-
       +else
       +        m=''
       +fi
       +
       +gv $m-nosafer $m-swap $m-style $PLAN9/lib/gv.style $m-ad $PLAN9/lib/gv.resource "$@"