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

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



On 20/11/2007, Alexy Khrabrov <deliverable@xxxxxxxxx> 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?

I think the shell script should work since /usr/bin/env has no idea
what zsh's builtins are... But for just calling r you can either
command r
or
disable r
r

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author