bug-bash
[Top][All Lists]
Advanced

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

Re: [bug #67358] Extra space in parameter expansion with quoted strings


From: Greg Wooledge
Subject: Re: [bug #67358] Extra space in parameter expansion with quoted strings and trailing $.
Date: Sat, 26 Jul 2025 14:31:41 -0400
User-agent: Mutt/1.10.1 (2018-07-13)

On Sat, Jul 26, 2025 at 13:37:09 -0400, mohos wrote:
> export S=" "
> echo $S"hello"$
> Actual output:
>  hello$
> Expected output:
> hello$

I can reproduce this in all versions of bash back to 2.05b, which is
the oldest I have.  The quotation marks don't appear to matter, but
the trailing $ does.

hobbit:~$ echo $s/$
 /$
hobbit:~$ echo $s/
/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]