|
|
Warp wrote:
> 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.
Actually, it's worse. There are surprisingly few utilities that don't
break on *any* possible file name.
Here's a contest. Given the directory /tmp/stuff, delete all the files
in that directory that end with ".tmp".
Let's see how many iterations it takes to get actually right.
--
Darren New / San Diego, CA, USA (PST)
"That's pretty. Where's that?"
"It's the Age of Channelwood."
"We should go there on vacation some time."
Post a reply to this message
|
|