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

Re: Emulating 'locate'



On Oct 4,  7:18pm, Lloyd Zusman wrote:
}
} Therefore, prior to the function definition, I now do this:
} 
}   { unalias xlocate; unfunction xlocate } 2>/dev/null
} 
} But besides that, would another way to prevent this problem be to always
} define functions with "function foo" instead of "foo()"?

Yes, the latter will work.  Note, however, that in ksh the meanings of
"foo() {...}" and "function foo {...}" are not quite equivalent, and
the zsh/ksh/bash developers have been discussing standardization of
some of those kinds of details, so there's a very small chance that in
the future you won't always be able to use them interchangeably.



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