Re: New technote for "do shell script"
Re: New technote for "do shell script"
- Subject: Re: New technote for "do shell script"
- From: Doug McNutt <email@hidden>
- Date: Tue, 28 Jan 2003 09:48:59 -0700
At 20:22 -0800 1/27/03, Paul Berkowitz wrote:
>
<http://developer.apple.com/technotes/tn2002/tn2065.html>.
>
>
Question 1:
>
>
"There are two possibilities: first, do shell script always uses the sh
>
shell, not your default shell, which Terminal uses. (The default shell for
>
new users is csh, so unless you've changed it, that's what it is.)"
I have a script I use at every login and it ran fine this morning. The script is 100% tcsh and uses if - end if in a non dislexic fashion which would surely fail in bash. It' is executed with a "do shell script". It does begin with #!/bin/tcsh.
My .tcshrc file also has some diagnostic logging that I have installed. The log for this morning shows that my script, on entry, called .tcshrc and that at that time the PATH variable was as I had set it up in environment.plist not a special PATH defined by AppleScript. So. . .
Paragraphs 1 and 2 are in direct conflict with my experiences. (I sure hope things are not going to change with 10.2.4 to match the document.)
Does it matter just who one "tells" to execute a shell script?
--
--> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <--
_______________________________________________
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.