Re: executing shell commands
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: executing shell commands

From: Adrian Ho <tcl@03s.net>
Date: Sun Mar 12 2006 - 06:40:29 CET

On 2006-03-12, Bryan Oakley <oakley@bardo.clearlight.com> wrote:
> Ben C wrote:
>> There seems to be a lot of magic going on somewhere meaning I don't need
>> to use split and join half as often as I would have thought.
>
> Not magic. Luck.
>
> The second you create a filename with an unbalenced curly brace you'll
> see your code fail. Admittedly that will likely never happen, but it could.

A somewhat more likely occurrence is a filename like this:

  Project Schedule {CY 2005-2006}.xls

which will throw the error:

  list element in braces followed by ".xls" instead of space

Whenever I think about relying on "magic" like that, I recall Mickey
Mouse as the Magician's Apprentice and I desist. 8-)

- Adrian
Received on Sun Apr 30 02:29:43 2006