Re: OT: Default Shell in 10.2.6
Re: OT: Default Shell in 10.2.6
- Subject: Re: OT: Default Shell in 10.2.6
- From: Craig Sutherland <email@hidden>
- Date: Mon, 4 Aug 2003 17:15:32 -0500
Jonathan,
Here is a clip from Doug McNutt that he was kind enough send me as a
part of a response to my questions about this:
********************
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. ... [The tech note
is] in direct conflict with my experiences.
No, it's not. You're saying you've got a file that's marked
executable and starts with "#!/bin/tcsh", right? If you trigger it by
saying 'do shell script "my-login-script"', then what actually happens
is this:
1. do shell script launches sh.
2. sh looks at the input "my-login-script" and determines that it's
the name of an executable file.
3. It executes the file.
4. The system notices the "#!" (aka shebang) line, sees that it should
use /bin/tcsh to run the file, and does so.
Once again: "do shell script" always uses sh to interpret its input.
What happens in the commands that input triggers depends on the
commands.
*******************
On Monday, August 4, 2003, at 03:23 PM, Jonathan Levi, M.D. wrote:
But don't forget that (t)csh is no longer the default for
AppleScript. It's bash now...
HTH
Craig
_______________________________________________
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.