Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: override the built-in r command with /usr/local/bin/r



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