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*

3
  • type -t gives and empty string for a pattern. How does this work? *[[?*]* ? Commented Aug 24, 2011 at 16:17
  • @balki type looks up an exact name. I don't think there's a way to look up a pattern, short of having a hard-coded list of built-ins and doing some complicated parsing of the output of alias, typeset -f and $PATH lookups. Commented Aug 24, 2011 at 16:23
  • run-help does display help for built-in, if it's not built-in it will open the man-page for that tool. Good tip. Commented Sep 3, 2017 at 2:49