Vincent Lefevre <vincent-o...@vinc17.net> wrote:

> I cannot see in Issue 7 how they are supposed to be special here.
> And
>
>   http://austingroupbugs.net/view.php?id=221
>
> doesn't seem to change anything. At least, they are *not* special
> in dash 0.5.8-2.3 and in BusyBox v1.22.1 sh (ash):

This is a patched version from a distro and not the original.


> $ 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?

Good question....

 /usr/xpg4/bin/sh
$ foo=abcdef; echo "${foo#'ab'}"
abcdef

 ksh93
joerg@unknown:~/cmd$ foo=abcdef; echo "${foo#'ab'}"
cdef

Jörg

-- 
 EMail:jo...@schily.net                    (home) Jörg Schilling D-13353 Berlin
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.org/private/ 
http://sourceforge.net/projects/schilytools/files/'

Reply via email to