From: Johannes Schindelin Date: Mon, 12 Jan 2009 22:47:47 GMT Subject: Re: rebase-merge/done: No such file or directory Message-ID: In-Reply-To: <87ocycjq29.fsf@jidanni.org> Hi, On Tue, 13 Jan 2009, jidanni@jidanni.org wrote: > Bug at git-rebase--interactive.sh:107: count=$(grep -c '^[^#]' < "$DONE") Woohoo. Buuuug. > $DONE might not exist. Do test -f $DONE before you grep it. I cannot reproduce here. Since all the files in .git/rebase-merge/ are internal files to rebase--interactive, I think we do not have to guard against any possible user action rendering assumptions about internals invalid. Wasting a minute, I seem to understand why I cannot reproduce. Just looking all of _two_ lines above the line you mentioned: sed -e 1q < "$TODO" >> "$DONE" Hrmpf. You're right. The user could have removed "$DONE"e between the two lines ;-) Hth, Dscho