Occasionally, a subscript fails to run, as in this example: $ cat t.sh #!/bin/bash
PACKAGEVERSION=$1 PACKAGE=`echo $PACKAGEVERSION | sed 's/^\(.*\)-.*$/\1/'` VERSION=`echo $PACKAGEVERSION | sed 's/^.*-\(.*\)$/\1/'` echo "PACKAGE $PACKAGE VERSION $VERSION" PACKAGE=`echo $PACKAGEVERSION | sed 's/^\(.*\)-.*$/\1/'` VERSION=`echo $PACKAGEVERSION | sed 's/^.*-\(.*\)$/\1/'` echo "PACKAGE $PACKAGE VERSION $VERSION" PACKAGE=`echo $PACKAGEVERSION | sed 's/^\(.*\)-.*$/\1/'` VERSION=`echo $PACKAGEVERSION | sed 's/^.*-\(.*\)$/\1/'` echo "PACKAGE $PACKAGE VERSION $VERSION" $ ./t.sh Hello-1.0.0 PACKAGE Hello VERSION 1.0.0 PACKAGE Hello VERSION PACKAGE Hello VERSION 1.0.0 $ ./t.sh Hello-1.0.0 PACKAGE Hello VERSION 1.0.0 PACKAGE Hello VERSION 1.0.0 PACKAGE VERSION 1.0.0 This is under Cygwin 1.5.25-15 under Windows XP Ver. 5.1 Build 2600 Service Pack 2. This is easily repeatable. I run into the problem by running the script 4 to 6 times. Is this a Cygwin bash bug? I wonder if it's related to running on a multi-core processor. I don't have the problem under Linux. Sincerely, Vitas Povilaitis -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple