[ale] Bash scripting q

JK jknapka at kneuro.net
Thu May 8 15:59:50 EDT 2008


Warren Myers wrote:
> How about:
>
> #!/bin/sh
> USER=$1
> cp foo `~$USER`
> chown $USER `$USER/foo`
>

No workie. Backquote is exactly like $(x): it executes x and replaces
the backquoted expression with the result.  But ~username is not a
valid command.

-- JK

-- 
I do not particularly want to go where the money is -
 it usually does not smell nice there. -- A. Stepanov



More information about the Ale mailing list