Re: Feature request

2015-05-26 Thread Chet Ramey
On 5/14/15 10:21 AM, r...@som.pdp10.guru wrote: > Dear Bash developers, > In effort to create better commented code, I have run across the following > missing bit of functionality: > No block comments Thanks for the suggestion. I don't see this as being worth the development effort. Chet -- `

Re: [PATCH] Add EXECIGNORE

2015-05-26 Thread Chet Ramey
On 4/17/15 5:53 PM, Eric Blake wrote: > Based on an idea from Dan Colascione: > https://sourceware.org/ml/cygwin/2010-11/msg00022.html > > Usage: add this to your shell startup: > EXECIGNORE='*.so:*.so.*' > to cause TAB completion to ignore shared library files when crawling > the file system to

Re: fc and the verbose mode

2015-05-26 Thread Chet Ramey
On 5/17/15 6:54 PM, isabella parakiss wrote: > fc activates the verbose mode to print the commands as they're read by > the parser and uses unwind_protect_int to restore it. > > This is a good idea but there are a few problems with it: > 1. it prints the DEBUG trap, which I didn't expect > 2. it's

Re: unset does not act as expected on namerefs

2015-05-26 Thread Shawn Wilson
On +2015/05/26 18:05:18, Geir Hauge wrote: > On Tue, May 26, 2015 at 11:00:45AM -0500, Eduardo A. Bustamante López wrote: > > # Here we 'unset ref', which actually unsets 'var'. Then, we assign 'var' to > > # 'ref', but since 'ref' is still a nameref, it instead assigns 'var' to > > 'var'. > > dua

Re: Check linux 4

2015-05-26 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/25/15 8:15 PM, Mike Frysinger wrote: > On 25 May 2015 17:38, Chet Ramey wrote: >> On 5/25/15 9:15 AM, isabella parakiss wrote: >>> This is from configure.ac >>> >>> linux*) LOCAL_LDFLAGS=-rdynamic # allow dynamic loading >>>

Re: unset does not act as expected on namerefs

2015-05-26 Thread Geir Hauge
On Tue, May 26, 2015 at 11:00:45AM -0500, Eduardo A. Bustamante López wrote: > # Here we 'unset ref', which actually unsets 'var'. Then, we assign 'var' to > # 'ref', but since 'ref' is still a nameref, it instead assigns 'var' to > 'var'. > dualbus@hp:~$ unset ref; ref=var; echo "$ref"; declare -

Re: unset does not act as expected on namerefs

2015-05-26 Thread Eduardo A . Bustamante López
On Tue, May 26, 2015 at 05:47:30PM +0200, Geir Hauge wrote: [...] > The surprising part is that it keeps the -n flag, but partially loses > the nameref ability: > > $ var=foo; declare -n ref > $ ref=var > $ printf '%s - ' "$ref"; declare -p ref > foo - declare -n ref="var" > $ unset ref > $ ref=va

Re: unset does not act as expected on namerefs

2015-05-26 Thread Geir Hauge
On Tue, May 26, 2015 at 11:24:57AM -0400, Shawn Wilson wrote: > On +2015/05/26 11:04:38, Greg Wooledge wrote: > > On Tue, May 26, 2015 at 10:31:34AM -0400, Shawn Wilson wrote: > > > swilson@swlap1:~/temp$ bash --version > > > GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) > > > swilson@s

Re: unset does not act as expected on namerefs

2015-05-26 Thread Shawn Wilson
On +2015/05/26 11:04:38, Greg Wooledge wrote: > On Tue, May 26, 2015 at 10:31:34AM -0400, Shawn Wilson wrote: > > swilson@swlap1:~/temp$ bash --version > > GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) > > swilson@swlap1:~/temp$ cat t.txt > > $ome text !n a file| > > swilson@swlap1:~/t

Re: unset does not act as expected on namerefs

2015-05-26 Thread Greg Wooledge
On Tue, May 26, 2015 at 10:31:34AM -0400, Shawn Wilson wrote: > swilson@swlap1:~/temp$ bash --version > GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) > swilson@swlap1:~/temp$ cat t.txt > $ome text !n a file| > swilson@swlap1:~/temp$ unset t > swilson@swlap1:~/temp$ t=$(< ./t.txt) > swi

unset does not act as expected on namerefs

2015-05-26 Thread Shawn Wilson
swilson@swlap1:~/temp$ bash --version GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) swilson@swlap1:~/temp$ cat t.txt $ome text !n a file| swilson@swlap1:~/temp$ unset t swilson@swlap1:~/temp$ t=$(< ./t.txt) swilson@swlap1:~/temp$ echo "$t" bash: $ome text !n a file|: invalid variable n

Re: eval a=b\ c

2015-05-26 Thread Greg Wooledge
On Mon, May 25, 2015 at 12:33:53PM -0700, d...@yost.com wrote: > # Echo the arguments, then execute them as a command. > I can't find a way to implement echodo in bash. set -x your code set +x

Re: eval a=b\ c

2015-05-26 Thread Andreas Schwab
d...@yost.com writes: > eval$@ You are expanding a shell parameter unquoted. Never do that unless you know what you are doing. eval "$@" Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for s