On Fri, Oct 28, 2005 at 08:54:40AM +0000, Gerrit Pape wrote:
> 
> Hi Herbert, bash, pdks, and posh in unstable do it differently than
> dash:
> 
>  $ bash -c 'K=dvb0.net0 A=${K#dvb} ; echo $A'
>  0.net0
>  $ pdksh -c 'K=dvb0.net0 A=${K#dvb} ; echo $A'
>  0.net0
>  $ posh -c 'K=dvb0.net0 A=${K#dvb} ; echo $A'
>  0.net0
>  $ dash -c 'K=dvb0.net0 A=${K#dvb} ; echo $A'
>  
>  $ 

I agree.  It makes sense to do it like bash.

However, it seems that even bash/pdksh don't agree on the finer
details:

$ bash -c 'a=/bin PATH=$a ls /dev/null'
bash: line 1: ls: No such file or directory
$ pdksh -c 'a=/bin PATH=$a ls /dev/null'
/dev/null
$

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


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

Reply via email to