[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 Meacham - California Institute of Technology, Alum. - address@hidden

reply via email to

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