> Since the expansion of '/' is not defined by POSIX, dash is
> certainly within its rights to abort rather than fail silently.

As Micah points out, IF dash needed to expand the reference containing
the "/" then you would certainly be correct.  However, the reference is
contained in a part of an if-statement which is never invoked:

> /bin/sh -c 'if false; then d="${foo/bar}"; fi'

Note the "if false;...".  The POSIX spec, in the sections we have quoted
above, is clear that this should NOT be an error, because that reference
is never expanded.


Please re-open this bug so it can be fixed.  Thanks!

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <[EMAIL PROTECTED]>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.us
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to