Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
> 1. If the file is called -, you're calling for trouble anyway.
> 2. Whoever passes a filename to your script should be using the ./- thing.
Many shellscripts break with file names with spaces in them. This is
because surprisingly few unix geeks know that in shell scripts you have
to use "$@" to refer to all the command-line arguments, not $*.
--
- Warp
Post a reply to this message
|