• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multi-line do shell script. How?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-line do shell script. How?


  • Subject: Re: Multi-line do shell script. How?
  • From: Christopher Nebel <email@hidden>
  • Date: Thu, 22 Apr 2004 12:14:00 -0700

On Apr 22, 2004, at 8:57 AM, Nigel Smith wrote:

On 22/4/04 5:14, "Graff" <email@hidden> wrote:

On Apr 21, 2004, at 5:52 PM, Christopher Nebel wrote:

On Apr 21, 2004, at 8:23 AM, Graff wrote:

If all you want to do is to check your environment variables then
just do this:
do shell script "declare"

Maybe on your system, but not a standard one. Try 'do shell script
"set"' instead.

I thought bash *was* the standard now? :-)

But "set" works in bash and tcsh, so it's probably better.

Oops, my mistake. "declare" does indeed work (in bash, that is, and therefore in "do shell script", but not in tcsh); I was thrown off by the fact that "which declare" claimed there was no such command.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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: Multi-line do shell script. How? (From: Nigel Smith <email@hidden>)

  • Prev by Date: Re: moving messages in Mail.app
  • Next by Date: Re: How to use "do shell script" to search for RegExps
  • Previous by thread: Re: Multi-line do shell script. How?
  • Next by thread: Re: Multi-line do shell script. How?
  • Index(es):
    • Date
    • Thread