ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] more with the scripts...


From: Joe Corneli
Subject: Re: [RP] more with the scripts...
Date: Thu, 10 Feb 2005 11:32:44 -0600

   Hey! Emacs is involved, no wonder it's not working! ;)

   Seriously,

   I'm not sure what might be the problem, but it seems to be occuring as
   soon as you use :exec, right? Assuming your /bin/sh is not tcsh the
   commands get run with different parent shells, different environments
   and stuff.

   Could you try executing env in your zippy script so that the environment
   can be compared between the two launching methods?


Well, I found a quick way to fix things up was to do the opposite of
the getenv that Shawn suggested:

[~]% ratpoison -c "getenv PATH"
/usr/bin:/bin:/usr/sbin:/sbin:/Users/arided:/usr/X11R6/bin
[~]% ratpoison -c "setenv PATH $HOME/bin/:/sw/bin/:/usr/local/bin/:{$PATH}" 
[~]% ratpoison -c "getenv PATH"
/Users/arided/bin/:/sw/bin/:/usr/local/bin/:{/sw/bin:/sw/sbin:/Users/arided/bin/:/sw/bin/:/usr/local/bin/:/Users/arided/bin/:/sw/bin/:/usr/local/bin/:/Users/arided/bin/:/sw/bin/:/usr/local/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/Users/arided:/usr/X11R6/bin}

I don't think I can do this in the .ratpoisonrc, because I'd need an
"exec" which I can't use at that point (and maybe the syntax I used is
wrong b/c I don't like the look of those braces).

But whatever, I can run stuff in my home directory now.

So yay!

Joe

PS. I'll try your suggestion about env later, to have that on record.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]