[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Msdos choice.com in bash204 shell returns 0
From: |
WayneK |
Subject: |
Msdos choice.com in bash204 shell returns 0 |
Date: |
Thu, 29 Mar 2001 00:15:21 GMT |
Bash204 not returning correct value when using msdos 'choice' command.
choice[.com] /c:abcde
In msdos bat file ERRORLEVEL set to a=1, b=2, c=3, d=4, e=5
In bash1.14.7 return is set to a=1, b=2, c=3, d=4, e=5
In bash203 return is set to a=0, b=0, c=0, d=0, e=0
In bash2.04.7(1) return is set to a=0, b=0, c=0, d=0, e=0
The Bash2.04.7(1) is from the bsh204b.zip file.
(Same results from complied 'bash')
Example shell:
choice /c:yneabc "Continue "
ret="$?"
echo "ret= $ret"
Thanks for your help
Wayne K
- Msdos choice.com in bash204 shell returns 0,
WayneK <=