MACSCRPT Archives

June 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0 (Apple Message framework v752.2)
Content-Type:
text/plain; charset=US-ASCII; delsp=yes; format=flowed
Date:
Tue, 26 Jun 2007 20:21:15 -0700
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
John Baxter <[log in to unmask]>
In-Reply-To:
Content-Transfer-Encoding:
7bit
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (23 lines)
On Jun 26, 2007, at 4:39 PM, Mark Lively wrote:

> Do shell script executes things using the sh shell.  sh unlike bash  
> doesn't expand wildcards.

Then why does
do shell script "ls -ld D*"

return
"-rw-r--r--    1 root  admin   73728 May 12 20:51 Desktop DB
-rw-r--r--    1 root  admin  340850 Apr 15 20:37 Desktop DF
drwxrwxr-x   15 root  admin     510 Nov  5  2006 Developer"

and
do shell script "echo D*"
return
"Desktop DB Desktop DF Developer"


There are other things sh doesn't do that bash does.

   --John

ATOM RSS1 RSS2