dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] quoted substring parameter expansion ignores single-quotes in the arg
@ 2017-09-26  3:41 G.raud
  2017-10-19 10:41 ` [NO-BUG] " G.raud
  0 siblings, 1 reply; 4+ messages in thread
From: G.raud @ 2017-09-26  3:41 UTC (permalink / raw)
  To: dash

To test that the single quotes are considered ordinary chars when
double-quoting the parameter expansion:

$ dash -c "a=\\'a\\'; echo \"\${a%'}\""

The result is surprising and non consistent with a non double-quoted
expansion where the single-quotes act as quotes:

$ dash -c "a=a%; echo \${a%'%'}"

Additionally the manual states that the arg to substring processing is
processed as an ordinary word (as probably POSIX too).

Regards

-- 
G.raud Meyer
graud@gmx.com

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

end of thread, other threads:[~2017-10-25 10:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-26  3:41 [BUG] quoted substring parameter expansion ignores single-quotes in the arg G.raud
2017-10-19 10:41 ` [NO-BUG] " G.raud
2017-10-21 12:13   ` [BUG] " Jilles Tjoelker
2017-10-25 10:08     ` Martijn Dekker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).