Saturday, October 06, 2018

Re: ksh equivalent to shell-expand-line

On Sun, Oct 07, 2018 at 12:03:31AM +0200, Klemens Nanni wrote:
> On Sat, Oct 06, 2018 at 09:38:42PM +0200, John Ankarström wrote:
[...]
> And yet, it disregards quoting and will errornously expand the following
> example into multiple words instead of one:
>
> bash-4.4$ echo "$(echo a b)"
> bash-4.4$ echo a b

Just in case it matters to anybody:

$ echo "$(echo a b)"
a b
$ bash --version
GNU bash, version 4.2.25(1)-release (x86_64-pc-linux-gnu)

Looks like something changed in between?

--
Regards,
Tomasz Rola

--
** A C programmer asked whether computer had Buddha's nature. **
** As the answer, master did "rm -rif" on the programmer's home **
** directory. And then the C programmer became enlightened... **
** **
** Tomasz Rola mailto:tomasz_rola@bigfoot.com **

No comments:

Post a Comment