[Top][All Lists]
[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
- [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, 2004/03/04
- 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