|
|
Log in / Subscribe / Register

Debian's which hunt

Debian's which hunt

Posted Nov 1, 2021 15:42 UTC (Mon) by NYKevin (subscriber, #129325)
In reply to: Debian's which hunt by mina86
Parent article: Debian's which hunt

Eh... you could take the echo(1) approach and basically say "If it's on your PATH and not an alias, shell function, etc., and you don't pass any flags, then output looks like it did in csh, otherwise the behavior is undefined."

(Yes, there are implementations which will print something funny if it's an alias, shell function, etc. See for example the builtin which in zsh.)


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds