• 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: Slow Command in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow Command in Snow Leopard


  • Subject: Re: Slow Command in Snow Leopard
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 7 Mar 2010 20:23:54 -0500

On Sun, Mar 7, 2010 at 7:23 PM, Luther Fuller <email@hidden> wrote:
> The man page for 'ls' does not include any explanation for the '& "/" &
> prefIdent & "*"'.
> The "*" probably tells 'ls' to find names beginning.

Actually, the shell is responsible for expanding the /path/prefix*,
before ls is even started up.  Which is why you don't see that on the
manual page for ls(1).

What ls gets as arguments is the complete list of matching pathnames,
so it's acting as little more than a glorified echo here.  It is,
however, more concise than a shell loop to do such an echo, and also
checks to make sure the files actually exist.  That's helpful since,
if there are no matching pathnames, the shell neither throws an error
nor removes the wildcard, but simply passes it on literally.  Then ls
notices that there's no such filename (ending with a literal asterisk)
and outputs nothing (and throws an error, which you catch with your
try block, which I carelessly left out of my original suggestion).

--
Mark J. Reed <email@hidden>
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Slow Command in Snow Leopard (From: Luther Fuller <email@hidden>)
 >Re: Slow Command in Snow Leopard (From: Michelle Steiner <email@hidden>)
 >Re: Slow Command in Snow Leopard (From: "Mark J. Reed" <email@hidden>)
 >Re: Slow Command in Snow Leopard (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Slow Command in Snow Leopard
  • Next by Date: terminal problems
  • Previous by thread: Re: Slow Command in Snow Leopard
  • Next by thread: Re: Slow Command in Snow Leopard
  • Index(es):
    • Date
    • Thread