Re: Aliasing zsh builtins w/o infinite regress?

From: Bill Marcum (bmarcum_at_iglou.com.urgent)
Date: 12/17/04


Date: Fri, 17 Dec 2004 11:53:09 -0500

On Fri, 17 Dec 2004 16:02:49 +0000 (UTC), bill
  <please_post@nomail.edu> wrote:
>
>
> Suppose foo is a zsh built-in, and that I always call foo with the
> -bar switches/flags; I'd like to alias foo to "foo -bar". Defining
>
> function foo {
> foo -bar "$@"
> }
>
> leads to an infinite regress. Is there any way refer to the foo
> built-in within the definition of the foo function so as to avoid
> the infinite regress?
>
builtin foo -bar "$@"

-- 
"Cow fault??? Have you progressed from BSD to BSE?"
cowsay -b "Prepare to be assimoolated! "