Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: override the built-in r command with /usr/local/bin/r
- X-seq: zsh-users 12235
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: override the built-in r command with /usr/local/bin/r
- Date: Tue, 20 Nov 2007 11:20:08 +0000
- In-reply-to: <62A7E6CC-A3FC-44FC-9B95-B883F44129EA@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <62A7E6CC-A3FC-44FC-9B95-B883F44129EA@xxxxxxxxx>
Alexy Khrabrov wrote:
> Greetings -- I'd like to use littler, the R shell scripting driver from
>
> http://biostat.mc.vanderbilt.edu/twiki/bin/view/Main/LittleR
>
> Its executable is called just 'r'. Alas, when I try to invoke it or
> call a script starting with
>
> #!/usr/bin/env r
>
> zsh tells me no such luck. Apparently r repeats the previous
> command, and r N repeats history command number N.
>
> How do I override zsh's built-in r to become available for my regular r?
"disable r" will work for running an external command called "r" from
the command line.
I don't understand what's happening with "env". As far as I understand
it, env searches the path for its command doesn't use a shell. I get
/usr/bin/env: r: No such file or directory
which is what I'd expect since I don't have the external command.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author