From: H. Peter Anvin Date: Wed, 14 Dec 2005 01:58:50 GMT Subject: Re: [PATCH] git-am --one Message-ID: <439F7C5A.4030509@zytor.com> In-Reply-To: <7v7ja85tqe.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > > Another thing you may probably want is to loop over "$@", so > that the flag is not --one anymore, but --2822 (or --bare as > opposed to mbox format) and do something like this: > > case "$series_of_2822_messages" in > '') ... original code ... ;; > *) > i=1 > for input > do > this=`printf "%${prec}d" $i > cp "$input" "$dotest/$this" > i=$(($i+1)) > done > printf "%${prec}d" $# >"$dotest/last" > ;; > esac > That is definitely a good idea. I'll mess with it a bit. -hpa