Re: Invoking cdbdump from a bash script, hanging
[email protected] (Paul Jarc) Thu, 19 Dec 2002 11:51:51 -0500
| Newsgroups | gmane.comp.djb.cdb |
|---|---|
| Organization | What did you have in mind? A short, blunt, human pyramid? |
| Message-ID | <[email protected]> |
Chris Wilkes <[email protected]> wrote: > bindir="/usr/local/bin" > DATA='data.cdb' > > command="$bindir/cdbdump < $DATA"; > echo "$command"; > `$command`; This will run /usr/local/bin/cdbdump with the arguments "<" and "data.cdb". After variables are expanded, the replacement value is subject to word splitting, but metacharacters are not given their usual special treatment. Also, you don't want to use backticks here: even if $command did what you wanted, the shell would then try to interpret cdbdump's output as a command. paul