From: Neil Brown Date: Tue, 13 Jun 2006 12:57:06 +0000 (+1000) Subject: When calling a recursive p, use $0 to find it. X-Git-Tag: v0.7~14 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=48d80c674b550c680e10e31b53c04b5528e7bc86;p=wiggle.git When calling a recursive p, use $0 to find it. This applied to recommit and decommit Signed-off-by: Neil Brown --- diff --git a/p b/p index 0b2f701..5220c81 100755 --- a/p +++ b/p @@ -818,7 +818,7 @@ case $cmd in then echo >&2 "Cannot find unique patch '$1' - found: $pfile"; exit 1 fi while [ -s "$pfile" ] && - p apply last && p commit ; do : ; done + $0 apply last && $0 commit ; do : ; done ;; decommit ) make_diff @@ -845,7 +845,7 @@ case $cmd in then echo >&2 "Cannot find unique patch '$1' - found: $pfile"; exit 1 fi while [ -s "$pfile" ] && - p open last && p discard ; do : ; done + $0 open last && $0 discard ; do : ; done ;; snapshot ) all_files snap_one