bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: archive generated by shar -V does not support the -c option]


From: Karl Berry
Subject: RE: archive generated by shar -V does not support the -c option]
Date: Sat, 28 Aug 2010 21:57:53 GMT

            test "X$1" = "X-c" && keep_file=false || keep_file=true

Sounds like a good change in principle, but the precedence of && and ||
is not portable (or at least it wasn't, NN years ago).  Safer to say:

if test "X$1" = "X-c"; then keep_file=false; else keep_file=true; fi

Best,
karl



reply via email to

[Prev in Thread] Current Thread [Next in Thread]