About 50 results
Open links in new tab
  1. bash - local: -n: invalid option - Stack Overflow

    Oct 25, 2016 · When executing script with ./script i see local: -n: invalid option my test script: cat script

  2. in bash what does the -n parameter in "local -n" mean?

    Jul 19, 2022 · 11 -n declares the variable to be a nameref: A variable can be assigned the nameref attribute using the -n option to the declare or local builtin commands (see Bash Builtins) to create a …

  3. Why do the `man bash` pages state the `declare` and `local` `-n ...

    Feb 10, 2022 · The option can be any of the options accepted by declare. (See also help local). So, the options that can be passed to the bash local built-in command are the same as those of declare. …

  4. parameters - What does -n mean in Bash? - Stack Overflow

    May 7, 2012 · The -n argument to test (aka [) means "is not empty". The example you posted means "if $1 is not not empty. It's a roundabout way of saying [ -z "$1" ]; ($1 is empty). You can learn more …

  5. Bash local variable scope best practice - Stack Overflow

    Sep 20, 2021 · In the case variable A (or a) is an empty string, the first version will print an empty line (the local animal variable is empty), the second version will print the value of the global variable …

  6. bash - What does "local n=$ {x##*wlan}" mean? - Stack Overflow

    Sep 30, 2016 · local n=${x##*wlan} I've never seen this syntax, I know that local means a variable in the scope of a function, I'm just unsure about the ${*##} part and it's pretty tricky to google that syntax.

  7. Bash version does not support option local -n - Stack Overflow

    Feb 26, 2019 · I have a function and I us local -n, in certain laptop this option works but another laptop does not supported this option because of bash version sorted_d() { local -n _less_d=$1 local -n _m...

  8. bash - What is LOCAL=NO in oracle processes - Stack Overflow

    Feb 7, 2014 · Ds 0:46 oraclexyz (LOCAL=NO) This command shows some output that Oracle database is consuming more memory. On searching in internet I found that ora_dbw0 is some database writer …

  9. How to create new local branch and switch between branches in Git

    Mar 31, 2021 · You switch back and forth between branches using git checkout <branch name>. And yes, git checkout -b NEW_BRANCH_NAME is the correct way to create a new branch and switching …

  10. Select first N words of a local macro in Stata - Stack Overflow

    Jan 24, 2022 · However, I would like to have a line that selects the first N words (in this case N=3) of the said macro. For now, I am using a loop structure that seems quite overkill for such a simple …