current dir from .command scripts
Hex Star
hexstar at gmail.com
Fri Aug 3 22:57:34 PDT 2007
On 8/3/07, Scot Hacker <shacker at birdhouse.org> wrote:
>
>
> On Aug 3, 2007, at 11:54 AM, Mike Galloy wrote:
> > echo `dirname $0`
>
> Bingo! That nails it. Thanks heaps, Mike Galloy.
>
> Scot
>
>
Is something wrong with my syntax and if so what? Thanks! :)
Last login: Fri Aug 3 22:10:25 on ttyp1
Welcome to Darwin!
macminis-computer:~ hexstar$ echo `dirname $0`
dirname: illegal option -- b
usage: dirname path
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /mailman/archive/macosx-talk/attachments/20070803/3af8ea38/attachment.html
More information about the MacOSX-talk
mailing list