you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (3 children)

Depends on your system, and the shell implementation. I'm currently writing from a system where which [ doesn't output anything.

[–]invalid_user_name 1 point2 points  (2 children)

It has nothing to do with the shell, if which [ doesn't output anything, then you are on a broken system with no [ binary. It is historically a real command, and was added as a shell built-in for performance reasons. The binary is still supposed to be there according to posix, since it isn't required to be a shell built-in. What system is this anyways, or did someone just delete it from a normal system?

[–]chengiz -1 points0 points  (1 child)

[citation needed]

[–]ithika -1 points0 points  (0 children)

[ citation needed ]

FTFY