From 48d80c674b550c680e10e31b53c04b5528e7bc86 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Tue, 13 Jun 2006 22:57:06 +1000 Subject: [PATCH] When calling a recursive p, use $0 to find it. This applied to recommit and decommit Signed-off-by: Neil Brown --- p | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5