Re: [NO-BUG] quoted substring parameter expansion ignores single-quotes in the arg

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

 



Wrong bug report.

In fact the beahviour of dash on "a=\\'a\\'; echo \"\${a%'}\"" is that
of POSIX and of zsh 5.  However 'bash --posix', 'mksh -o posix' and
pdksh fail to parse the command and ksh does not remove the quote from
$a.

On Tue, Sep 26, 2017 at 05:41:48AM +0200, G.raud wrote:
> Subject: [BUG] quoted substring parameter expansion ignores single-quotes
>  in the arg
> 
> 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).

-- 
G.raud Meyer
graud@xxxxxxx
--
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