[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RP] Re: poundbang
From: |
John Meacham |
Subject: |
Re: [RP] Re: poundbang |
Date: |
Thu Mar 4 14:06:51 2004 |
User-agent: |
Mutt/1.4.2i |
On Fri, Mar 05, 2004 at 07:42:44AM +1100, twb wrote:
> Quoth address@hidden (Björn Lindström) on or about Thu, 04 Mar 2004 14:02:12
> +0100:
> > I think the _clean_ way to do it, would be to have a command line
> > option, that makes ratpoison execute commands from stdin, so you could
> > do:
> >
> > #!/whatever/bin/ratpoison -[appropriate_character]
>
> What about
> #!/path/ratpoison -c "source -"
won't work. you may only pass a single option on a #! line. the kernel
doesn't do any parsing to split up tokens.
it also is not what you want, #! scripts don't read their commands from
stdin (otherwise how would you write scripts that interacted with the
user). the filename is passed as an argument.
the correct solution is to add a single option
-f <file> - read commands from file.
then put
#!/usr/bin/ratpoison -f
at the beginning of your files.
John
--
---------------------------------------------------------------------------
John Meacham - California Institute of Technology, Alum. - address@hidden
---------------------------------------------------------------------------
- [RP] poundbang, Joshua Neuheisel, 2004/03/02
- Re: [RP] poundbang, Shawn Betts, 2004/03/04
- Re: [RP] poundbang, Joshua Neuheisel, 2004/03/04
- Re: [RP] Re: poundbang, twb, 2004/03/04
- [RP] Re: poundbang, Björn Lindström, 2004/03/04
- Re: [RP] Re: poundbang,
John Meacham <=
- Re: [RP] Re: poundbang, Shawn Betts, 2004/03/04
- Re: [RP] Re: poundbang, Ryan Yeske, 2004/03/05
- Re: [RP] Re: poundbang, Shawn Betts, 2004/03/05
- Re: [RP] Re: poundbang, twb, 2004/03/05
- Re: [RP] Re: poundbang, Cameron Patrick, 2004/03/05
- Re: [RP] Re: poundbang, twb, 2004/03/05
- Re: [RP] Re: poundbang, Joshua Neuheisel, 2004/03/05
- Re: [RP] Re: poundbang, Patrick Goldmann, 2004/03/07
- JNPatch problem [Was: Re: [RP] Re: poundbang], Joshua Neuheisel, 2004/03/08
- Re: JNPatch problem [Was: Re: [RP] Re: poundbang], Patrick Goldmann, 2004/03/08