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*

26
  • 2
    BTW: This feature was always in conflict with the POSIX standard. Commented Sep 30, 2015 at 19:25
  • 1
    I recently made the export, unexport and unset builtins from the Bourne Shell POSIX compliant and somewhere in these builtins is the explanation, I believe in export. Commented Sep 30, 2015 at 19:41
  • 1
    @cuonglm Is there a man page that describes how to use functions in bash ? Commented Oct 1, 2015 at 3:01
  • 1
    @Jake - man bash. when you get it open, press the / key and use a regex like ^[[:space:]]*Func to find a line that starts with that phrase. Press n to skip through matches to your search. and judging by your question, you might want to have a look at alias as well. Commented Oct 1, 2015 at 3:11
  • 1
    @Jake: The semicolon is just a terminator, used to separated shell token, here's the command and the }. bash documentation have a details part about functions. Commented Oct 1, 2015 at 3:12