Re: ARGV[@] Not Always Populated

2019-10-02 Thread Chet Ramey
On 10/1/19 6:33 PM, Adam Danischewski wrote: > If you don't access the ARGV array before you drop into a function, ARGV is > not populated. > [...] > If you uncomment the echo at the top of the script then the printing is as > expected. > I realize the Bash Documentation states: >BAS

ARGV[@] Not Always Populated

2019-10-01 Thread Adam Danischewski
*Configuration Information [Automatically generated, do not change]:Machine: x86_64OS: linux-gnuCompiler: gccCompilation CFLAGS: -g -O2 -fdebug-prefix-map=/build/bash-LQgi2O/bash-5.0=. -f$uname output: Linux amdubuntu 5.0.0-29-generic #31-Ubuntu SMP Thu Sep 12 13:05$Machine Type: x86_64-pc-linux-gn