[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Unexpected tilde expansion
From: |
Ángel González |
Subject: |
Re: Unexpected tilde expansion |
Date: |
Wed, 01 Jun 2016 16:57:46 +0200 |
On 2016-06-01 at 10:40 -0400, Greg Wooledge wrote:
> On Wed, Jun 01, 2016 at 03:33:23PM +0200, Christian wrote:
> > sh and zsh both return the expected x=~
> >
> > sh -c "echo x=~"
> >
> > x=~
>
> imadev:~$ bash -c 'echo x=~'
> x=/net/home/wooledg
> imadev:~$ bash -posix -c 'echo x=~'
> x=~
Even if it's a bash extension, it should be documented. Christian is
right in that it's an unexpected behavior.