On Fri, 18 Mar 2011 10:32:18 -0700, Kaz Kylheku <[email protected]>
wrote: 
> Plus a few more fixes. It's behaving well for me now. I'm ready
> for stress-testing with big patch stacks.

Oh, and one little thing: unbound access to $1 due to non-strict
evaluation order for "test -a".
This broke under "quilt snapshot".

I'm a big believer in "set -eu".

@@ -127,7 +128,7 @@ if [ $# -ge 1 -a -n "$opt_file" ] ; then
        exit 1
 fi
 
-if [ $# -gt 1 -a "$1" == "-" ] ; then
+if [ $# -gt 1 -a "${1:-}" == "-" ] ; then
        echo "Error: if - is specified, then no other arguments can be added"
        echo
        usage



_______________________________________________
Quilt-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/quilt-dev

Reply via email to