i know that a command can be forced to run in the current shell, as opposed to a new one, by placing a dot before it, ie.
is there any way to do this in the shebang line, so that the script always runs in the current shell, regardless of whether there is a dot?Code:$ . somescript args
edit:
another question, is there some way to declare a variable where the name is decided by the value of another variable, ie.
(except that doesn't work)Code:declare -a $varOne=( 1 2 3 4 5 )


LinkBack URL
About LinkBacks

Reply With Quote
