Good afternoon:

Unless -- is explicitly given on the zdiff command line, the shell enters an
infinite loop because there is no other way to break out of the command
token while loop.

Attached is a small patch to terminate option processing when either a
filename or -- is detected on the command line.


Regards,

Joseph Parmelee
--- zdiff.orig  2007-03-19 18:34:39.000000000 -0600
+++ zdiff       2007-03-23 17:15:54.000000000 -0600
@@ -40,6 +40,7 @@
   --v*) echo "$version" || exit 2; exit;;
   --) shift; break;;
   -*) OPTIONS="$OPTIONS $ARG"; shift;;
+  *) break;;
   esac
 done
 for file; do

Reply via email to