Re: gmc neverceases to amaze



"Thomas R. Shannon" <tshanno@bsd.medctr.luc.edu> writes:

> > GMC will create a new window in the current working directory when you
> > run it.  So you just need to "cd /usr; gmc".
> 
> Hmmm.  I thought this would work but it didn't.  I get the message
> "/home/tshanno/cd not found".
> 
> Is there a way to avoid this?

It seems Window Maker is parsing the command line itself and it can't
use cd because it's a shell builtin.  One way (tested) is to have a
command line like:

    sh -c 'cd /usr; gmc'

Another is to have a script like this: (untested)

    #!/bin/sh
    cd "$1" && exec gmc

If you put that in /usr/local/bin/gmccd then a Window Maker command
line like "gmccd /usr" should work.

> Tom
    Andy
------------   ------- - --   ----- ---- -  -  -        --            
Andrew Smith                                         amsmith@pmail.net
Future Illusions                              www.future-illusions.com
           - - -   - - -       - -- - ----- -   -    - ---------- ----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]