Re: bash --debugger does nothing if debug script not installed

2014-11-23 Thread Ryan Cunningham
-- Sent from my iPad >> On Nov 23, 2014, at 11:29 AM, Ryan Cunningham wrote: >> >> On Nov 23, 2014, at 10:58 AM, Chet Ramey wrote: >> >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >>> On 11/21/14 9:31 PM, Eric Blake wrote: >>> >>> $ bash --debugger foo >>> bash: debug script /usr

Re: bash --debugger does nothing if debug script not installed

2014-11-23 Thread Ryan Cunningham
On Nov 23, 2014, at 10:58 AM, Chet Ramey wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >> On 11/21/14 9:31 PM, Eric Blake wrote: >> >> $ bash --debugger foo >> bash: debug script /usr/bin/bashdb: file not found >> >> to give me a heads up that I need to install bashdb. Would it

Re: to add ".bash/" along with ".bashrc" as the default init dir.

2014-11-23 Thread Chet Ramey
On 11/23/14 5:54 AM, Xie Yuheng wrote: > we should add ".bash/" along with ".bashrc" as the default init dir. > this will make things more flexible, and will not break any existed code. > to be "default" is important, people who right simple makefile can use > this, only when it is "default". Is t

Re: bash --debugger does nothing if debug script not installed

2014-11-23 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/21/14 9:31 PM, Eric Blake wrote: > $ bash --debugger foo > bash: debug script /usr/bin/bashdb: file not found > > to give me a heads up that I need to install bashdb. Would it make > sense to make the explicit use of --debugger be fatal if a d

Re: test '-v' - associative vs. normal array discrepancy - a bug ?

2014-11-23 Thread Chet Ramey
On 11/21/14 4:43 PM, Greg Wooledge wrote: > OK, right off the bat, you are using an undocumented HACK: > > function filter { > local REF="$1[@]" X > > I don't remember whether we ever got official word from Chet on whether > this syntax would continue to be supported in the future. It se

Re: to add ".bash/" along with ".bashrc" as the default init dir.

2014-11-23 Thread Piotr Grzybowski
Hi, do you mean, you want bash to automatically load all files from ~/.bash/ directory? you want it to work as if putting this into ~/.bashrc: for file in ~/.bash/*; do if [ -f "${file}" ]; then . "${file}"; fi; done; is that right? cheers, pg On Sun, Nov 23, 2014 at 11:54 AM, Xie Yuh

to add ".bash/" along with ".bashrc" as the default init dir.

2014-11-23 Thread Xie Yuheng
we should add ".bash/" along with ".bashrc" as the default init dir. this will make things more flexible, and will not break any existed code. to be "default" is important, people who right simple makefile can use this, only when it is "default".