home | list info | list archive | date index | thread index

Re: expansion of tilde for home directory

On Thu 2021-06-17 14:26:01 -0400, Alex Pilon wrote:
> On Thu 2021-06-17 13:43:43 -0400, Ian! D. Allen wrote:
> > As others have said, quoting (even double quoting) hides tilde expansion.
> > Just make sure the tilde isn't inside quotes and it works fine:
> >
> >     DIR=~/"Something"
>
> Strictly speaking per spec this won't work. Tilde expansion happens
> before parameter substitution. If it happens in any other order, that is
> undefined behaviour and a portability issue.

I misread that. That's my fault. I was thinking of some other thread
when referring to other users.

Ian's right.

Apologies for the spam list.

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org