From: Jan Kratochvil Date: Sun, 6 Nov 2011 15:35:04 +0000 (+0100) Subject: Fix .in search. X-Git-Url: http://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=63d617ba50cf702cc6f843f0b5958f2ed3385d93;hp=c6e200ef183f053470f074d0678256a2d3cb47dd Fix .in search. Make --version an exception. --- diff --git a/src/gdb-io b/src/gdb-io index 10152a5..6e28371 100755 --- a/src/gdb-io +++ b/src/gdb-io @@ -9,9 +9,9 @@ mkdir -p $DIR i=0 while true;do FILE=$DIR/`printf %02d $i` - if ! test -f $FILE;then + if ! test -f $FILE.in;then break fi i=$[$i+1] done -tee $FILE.in | "$0"-orig "$@" | tee $FILE.out +if [ "$*" != --version ];then tee $FILE.in;fi | "$0"-orig "$@" | tee $FILE.out