Re: Command line text substitution
Re: Command line text substitution
- Subject: Re: Command line text substitution
- From: Paul Berkowitz <email@hidden>
- Date: Sat, 18 Jan 2003 15:00:32 -0800
On 1/18/03 1:56 PM, "Doug McNutt" <email@hidden> wrote:
>
At 23:10 -0800 1/17/03, John W Baxter wrote:
>
> Actually, no. I think do shell script runs sh, which is much more
>
> bash-like than tcsh like.
>
>
I have tsch selected as my default shell and AppleScript, or perhaps Terminal
>
as called by AppleScript, seems to honor my choice.
It depends which OS you have. If you script the Terminal itself, of course,
then you get tcsh. Always.
If you use 'do shell script' you get sh, which apparently in OS 10.1.x
emulated zsh, and in 10.2.x emulates bash. Someone else, hopefully, will
explain what that statement actually means. Perhaps I've got it backwards,
and in 10.1.x it was zsh emulating sh, and now in 10.2.x it's bash emulating
sh. I still don't know what that means.
>
>
It would be nice to have someone at Apple provide the "official" statement
>
though. For portability of scripts one needs to know.
They've done that before. Perhaps they will again. What do you mean by
"portability"? This only concerns the AppleScript Standard Addition 'do
shell script'. Where could that be ported to except another OS X machine? I
suppose we need to know for 10.1.x vs. 10.2.x, although they are both
apparently using flavors of sh.
If you're not concerned with AppleScript here (which would be odd), or are
scripting the Terminal application, then it's tcsh for sure.
--
Paul Berkowitz
_______________________________________________
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.