Re: Why root?
Re: Why root?
- Subject: Re: Why root?
- From: John W Baxter <email@hidden>
- Date: Sat, 3 Aug 2002 13:50:44 -0700
At 17:41 -0700 8/2/2002, Christopher Nebel wrote:
>
As for the pwd/PWD/cwd business, you're probably using csh in Terminal,
>
while "do shell script" always uses sh.
tcsh as shipped (bash here).
One consequence of what Chris says above is that one can't necessarily test
a script in the terminal--even if one carefully sets up the same
environment variables that the script run by do shell script will see--and
get the same result. Because the shell may not do the same thing.
At minimum, execute sh in Terminal before testing what you're going to feed
into do shell script.
As one trivial example: (I go into tcsh (from bash) so I know where I am
at the start, try something, then go into sh and try the same thing).
localhost% tcsh
[localhost:~] john% echo ab{c,d,e}fg
abcfg abdfg abefg
[localhost:~] john% sh
localhost% echo ab{c,d,e}fg
ab{c,d,e}fg
[The "brace expansion" can be really useful at times. Lots of the enhanced
shells have it.]
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: Why root? (From: Christopher Nebel <email@hidden>) |