Geoff Clare <[email protected]> wrote:
> > in dash 0.5.8-2.3 and in BusyBox v1.22.1 sh (ash):
> >
> > $ foo=abcdef; echo "${foo#'ab'}"
> > abcdef
> >
> > but the other shells regard them as special:
> >
> > $ foo=abcdef; echo "${foo#'ab'}"
> > cdef
> >
> > So, is this also unspecified like double quotes? Or should it
> > be specified that they are special, in which case, dash / ash
> > are buggy?
>
> Dash conforms to the standard if you execute it as "sh".
(exec -a sh dash)
$ foo=abcdef; echo "${foo#'ab'}"
abcdef
So dash behaves in default mode and in "sh" mode the same as /usr/xpg4/bin/sh
but different than ksh93
Jörg
--
EMail:[email protected] (home) Jörg Schilling D-13353 Berlin
[email protected] (work) Blog:
http://schily.blogspot.com/
URL: http://cdrecord.org/private/
http://sourceforge.net/projects/schilytools/files/'