unexpected parameter expansion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I get unexpected output with dash doing parameter expansions with }
within quotes involved, e.g.

$ dash -c 'foo=; echo ${foo:-"{a}bar"}'
{abar}
$ 

I expected:
{a}bar

http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581428

Sorry, I don't have a patch to suggest.

Thanks, Gerrit.
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux