ratpoison-devel
[Top][All Lists]
Advanced

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

Re: [RP] Re: poundbang


From: Joshua Neuheisel
Subject: Re: [RP] Re: poundbang
Date: Thu Mar 4 05:27:01 2004

From: "Björn Lindström"
> "Joshua Neuheisel" writes:
>
> > True, this does duplicate the functionality of that perl script, as well
as
> > the shell script found at
> > http://ratpoison.elektrubadur.se/ratpoison-script
> > on the wiki.  I just feel it's a little cleaner to do it this way,
>
> 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]

I'm a little confused here.  The program loader interprets the line
#!/bin/bang
in the file foo to mean
/bin/bang foo
not
/bin/bang < foo

Moreover, my patch allows for this (at least in conjuction with bash), so
the following would read from stdin:
ratpoison /dev/stdin

Joshua



reply via email to

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