Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16598

Re: Assignment-like word shouldn't be subjected to tilde expansion in POSIX mode

From "M. Nejat AYDIN" <mnaydin@yahoo.com>
Newsgroups gnu.bash.bug
Subject Re: Assignment-like word shouldn't be subjected to tilde expansion in POSIX mode
Date 2020-07-21 15:14 +0300
Message-ID <mailman.280.1595333714.24492.bug-bash@gnu.org> (permalink)
References <CAH7i3LqG=mnoiSbetxVdg3wqso5orGgMqQk70-UfJ=wcdf6uLQ@mail.gmail.com> <8ddc4816-f85e-97b3-5c51-9b55acdcaca5@case.edu> <9881b6b4-237f-ea61-d9fc-9c3f9f9ae4c3@yahoo.com> <20200721114844.GQ22833@eeg.ccf.org> <5098cfe1-6de1-b22d-d8e9-a26ba0b3b991@yahoo.com>

Show all headers | View raw


On 7/21/20 2:48 PM, Greg Wooledge wrote:
> On Tue, Jul 21, 2020 at 10:55:06AM +0300, M. Nejat AYDIN wrote:
>> Also, shouldn't the tilde be expanded following
>>      $ echo ~:
>> ? The colon terminates tilde-prefix in an assignment, but there is no
>> assignment involved here.
> 
> Works for me.
> 
> unicorn:~$ echo ~:
> /home/greg:
> 
> Also in POSIX mode.
> 

Oops, I've misstated.
I think the tilde in
     $ echo ~:
shouldn't have been expanded and should have been printed verbatim:
     ~:

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Assignment-like word shouldn't be subjected to tilde expansion in POSIX mode "M. Nejat AYDIN" <mnaydin@yahoo.com> - 2020-07-21 15:14 +0300

csiph-web