Re: wildcard and variable expansion
On Sun, Dec 25, 2005 at 11:50:28PM +0100, Frank Gevaerts wrote:
> On Sun, Dec 25, 2005 at 11:31:07PM +0100, Lubos Vrbka wrote:
> > export MASTER_HOST=`hostname`
> > export FILE_PATH=some_file_path
> > pbsdsh -- /bin/sh -c 'scp $FILE_PATH/file* $MASTER_HOST:'
> Have you tried double quotes ?
> pbsdsh -- /bin/sh -c "scp $FILE_PATH/file* $MASTER_HOST:"
Or using double quotes around what the master host has to expand
and single quotes around what has to be passed on intact to the
pbsdsh -- /bin/sh -c "scp $FILE_PATH/'file*' $MASTER_HOST:"
> "Debugging is twice as hard as writing the code in the first place.
> Therefore, if you write the code as cleverly as possible, you are,
> by definition, not smart enough to debug it." - Brian W. Kernighan
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact email@example.com
"Running Debian GNU/Linux and
loving every minute of it." -L. von Sacher-M.(1835-1895)