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.

3
  • 2
    In alias command="bash bashscriptname" the script does not necessarily have to be executable; in the alias c=/path/to/script it has to. Commented Jul 24, 2018 at 16:29
  • It is not true at all that functions are "only available inside Bash". If you mean to say they are a Bash-only feature, that is simply false (Bourne shell and every compatible derivative has them); and if you mean to say they are a feature of interactive shells, that's not accurate either (though aliases, variables, and functions defined in a file which gets loaded at startup by interactive shells obviously will not be loaded by noninteractive shells). Commented Aug 19, 2018 at 8:10
  • @tripleee The meaning was more like "you can't exec() shell functions" :-) Commented Sep 17, 2018 at 8:50