David T-G wrote:
It even can work in a parameter:
davidtg@wench:~> cat /tmp/T #!/bin/sh echo $1 davidtg@wench:~> /tmp/T foo=~/whatever foo=/mnt/data/home/davidtg/whatever
The trick is to have it look like a param instead of an argument:
davidtg@wench:~> /tmp/T --foo=~/whatever --foo=~/whatever
Can you also explain the difference? To the shell, both variations are invocations of a script with some text parameters.
However, the code that gets the raw tilde could also of course expand it pretty simply, too.
Sure, but I see no need put put shell logic in my code :-) -- Per Jessen, Zürich (14.2°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org