Or alternatively use the full path for rake like /usr/bin/rake.

On Sun, Dec 2, 2012 at 12:29 PM, Siteshwar Vashisht <sitesh...@gmail.com> wrote:
> Hi,
>
>
>
> You should prefix your command with "command" builtin, so the call would
> look like :
>
>
>
>     command rake $argv
>
>
>
> For reference see :
> http://ridiculousfish.com/shell/user_doc/html/commands.html#command
>
>
>
>
>
> On Sunday 02 Dec 2012 11:45:24 AM Jakub Arnold wrote:
>
> How should I do it when I define a function which wraps a command and where
> I want to call the command from inside the function?
>
>
> An example of this
>
>
> function rake
>
>   if test -f Rakefile
>
>     bundle exec rake $argv
>
>   else
>
>     rake $argv   # this ends up being an infinite loop
>
>   end
>
> end
>
>
> Of course I could do `ruby -S rake` instead, but that's not a general
> solution to this problem.
>
>
>
> --
>
> Regards,
>
> Siteshwar Vashisht
>
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> DESIGN Expert tips on starting your parallel project right.
> http://goparallel.sourceforge.net/
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
DESIGN Expert tips on starting your parallel project right.
http://goparallel.sourceforge.net/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to