Skip to contentSkip to conversation

parameter expansion and double quotes

DISCUSSION SamLT 2 participants 2 messages Jan 15, 2010 – Jan 16, 2010

lore
Share & tools
lore

SamLT

author
#0 lore raw

Hello,

I'm using dash 0.5.5.1, and noticed a strange behaviour:

| $ t=123
| $ echo ${t%${t#?}}
| 1
| $ echo "${t%${t#?}}"
| 
| $

Is it a bug or something?

Thank you

#1 lore raw
Quoted 6 lines · SamLT

Hello,

I'm using dash 0.5.5.1, and noticed a strange behaviour:

Quoted 8 lines
| $ t=123
| $ echo ${t%${t#?}}
| 1
| $ echo "${t%${t#?}}"
| 
| $

Is it a bug or something?

Yes, this looks like a bug. I'll look into it.

Thanks,

Signature · 4 lines
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