Bug in bash 4.4-beta: suspending and restarting "man" program

2015-10-28 Thread Keith Thompson
I'm running bash 4.4-beta, built from bash-4.4-beta.tar.gz, on two different x86_64 systems, one running Debian 6.0.10 and another running Linux Mint 17.3. On both systems, if I run "man rm" (for example) I can read the "rm(1)" man page using "less" (my $MANPAGER is set to "less -s -r"). If I the

Re: Possible bug in 4.3.11: Nameconflict when when passing an array to a function

2015-10-28 Thread Chet Ramey
On 10/28/15 10:22 AM, Greg Wooledge wrote: > Now, as for the changes from bash 4.2 to 4.3, I don't know the whole > answer. Here are some of the changes from the CHANGES file: > > u. There are changes to the expansions peformed on compound array > assignments, > in an effort to make foo=(

Re: Possible bug in 4.3.11: Nameconflict when when passing an array to a function

2015-10-28 Thread Greg Wooledge
On Wed, Oct 28, 2015 at 03:42:08PM +0100, Oskar Maier wrote: > Furthermore, the original source is a small collection of bash > function, purely for private use, hence I did not took too much pain to > make it portable. http://mywiki.wooledge.org/BashWeaknesses #13 especially

Re: Possible bug in 4.3.11: Nameconflict when when passing an array to a function

2015-10-28 Thread Oskar Maier
Dear Greg, thank you for the extensive reply, I've already learned something new. The code I've posted was just intended as a minimal working example without giving it to much thought, therefore please excuse the unquoted "arr[@]". Furthermore, the original source is a small collection of bash

Re: Possible bug in 4.3.11: Nameconflict when when passing an array to a function

2015-10-28 Thread Greg Wooledge
> On Wed, Oct 28, 2015 at 11:35:42AM +0100, Oskar Maier wrote: > #!/bin/bash > > function printarray1 () { > local -a arr=("${!1}") > echo "${arr[@]}" # printing the complete array > echo "${arr[9]}" # just to check if it is really recognized as an integer > indexed array > } [...] > print

Re: ${var@P} expansion includes 0x01 and 0x02

2015-10-28 Thread Chet Ramey
On 10/27/15 5:02 PM, Greg Wooledge wrote: > I decided to play around with the ${var@P} expansion in 4.4-beta. > > imadev:~$ red=$(tput setaf 1) reset=$(tput sgr0) > x='\[$red\]\u\[$reset\]@\h:\w\$ '; printf %s "${x@P}" | od -t x1 > 0001 1b 5b 33 31 6d 2 77 6f 6f 6c 65 64 67

Re: Possible bug in 4.3.11: Nameconflict when when passing an array to a function

2015-10-28 Thread Greg Wooledge
On Wed, Oct 28, 2015 at 11:35:42AM +0100, Oskar Maier wrote: > http://stackoverflow.com/questions/33371309/change-in-behaviour-of-declare-local-from-bash-4-2-to-4-3 Here is the text: == I've recently updated my system and got a new bash version. Since then I've encoun

Possible bug in 4.3.11: Nameconflict when when passing an array to a function

2015-10-28 Thread Oskar Maier
Hello, I recently upgraded my Bash to 4.3 and soon after encountered a changed behaviour in my Bash-scripts. Comment on my question posed at Stackoverflow hint towards a bug. There I also explain the problem in detail: http://stackoverflow.com/questions/33371309/change-in-behaviour-of-declar