Tag Info

New answers tagged

1

Gnouc's answer explains my first question: "Why does it make a difference when I call Bash's source command from the _import function as opposed to directly?" Regarding my second question: "How can I normalize the behavior of Bash's source command?" I think I found the following answer: By changing the _import function to: function _import { local -r ...


3

The problem because source execute file in current environment. And in bash, if no positional parameters is provided, they are unchanged. From bash Bourne Shell Builtins man page: . (a period) . filename [arguments] Read and execute commands from the filename argument in the current shell context. If filename does not contain a slash, the ...


2

Options for compgen command are the same as complete, except -p and -r. From compgen man page: compgen compgen [option] [word] Generate possible completion matches for word according to the options, which may be any option accepted by the complete builtin with the exception of -p and -r, and write the matches to the standard output For options ...



Top 50 recent answers are included