All of lore.kernel.org
 help / color / mirror / Atom feed
* parameter expansion and double quotes
@ 2010-01-15 20:20 SamLT
  2010-01-16 12:16 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: SamLT @ 2010-01-15 20:20 UTC (permalink / raw)
  To: dash

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset*=utf-8''%E2%80%9Cus-ascii, Size: 172 bytes --]



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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: parameter expansion and double quotes
  2010-01-15 20:20 parameter expansion and double quotes SamLT
@ 2010-01-16 12:16 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2010-01-16 12:16 UTC (permalink / raw)
  To: SamLT; +Cc: dash

SamLT <samuel.lethiec@intelunix.fr> wrote:
> 
> 
> 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?

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

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-16 12:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-01-15 20:20 parameter expansion and double quotes SamLT
2010-01-16 12:16 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.