delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
X-Authenticated: | #27081556 |
From: | Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de> |
To: | djgpp-workers AT delorie DOT com |
Subject: | Re: bash and expr difficulty |
Date: | Tue, 11 Apr 2006 08:22:15 +0200 |
User-Agent: | KMail/1.8.2 |
References: | <200604092354 DOT 14287 DOT juan DOT guerrero AT gmx DOT de> |
In-Reply-To: | <200604092354.14287.juan.guerrero@gmx.de> |
MIME-Version: | 1.0 |
Message-Id: | <200604110822.15352.juan.guerrero@gmx.de> |
X-Y-GMX-Trusted: | 0 |
Reply-To: | djgpp-workers AT delorie DOT com |
Am Sonntag, 9. April 2006 23:54 schrieb Juan Manuel Guerrero: > Please look at the following code snippet: > > q=0 > q=`expr 1 + 1` > echo q=$q > > If this shell script is ran with bash 2.05b with LFN support available then > it produces the expected output: > > q=2 > > If the same script is ran from plan DOS (no LFN support) the script fails > with output: > > q= OFYI, I have replaced bash 2.05b with bash 2.04 and that version does *not* exhibit this failure. With bash 2.04 the configure script works on plain DOS and on Win98SE. Regards, Juan M. Guerrero
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |