help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] handling variables with tilde character


From: Greg Wooledge
Subject: Re: [Help-bash] handling variables with tilde character
Date: Tue, 3 Jul 2012 16:39:54 -0400
User-agent: Mutt/1.4.2.3i

On Wed, Jul 04, 2012 at 12:28:07AM +0400, address@hidden wrote:
> that's exactly what i'm trying to do - use variables with tilde as an 
> username.

As he said, you need eval.

username=joe
eval echo ~$username

This gets tricky and dangerous VERY quickly.



reply via email to

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