MACSCRPT Archives

June 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Subject:
From:
John Baxter <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 26 Jun 2007 20:21:15 -0700
Content-Type:
text/plain
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