Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 3
    You recommend type over which, but don't give any reason why. (I know why, but somebody who needs the recommendation wouldn't.) Commented Nov 24, 2015 at 20:51
  • 1
    @cjm Here's a whole treatise on why not which: unix.stackexchange.com/questions/85249/… Commented Nov 24, 2015 at 21:43
  • Very informative. You'd never guess there's so much controversy over such a seemingly simple command that does a simple task Commented Nov 24, 2015 at 23:12
  • 4
    @GaneaDanAndrei Mainly, use type instead of which, don't name your program "set", and realize that function set { ./set; } is an ugly hack that you should probably avoid. Commented Nov 24, 2015 at 23:15