Re: RFE: remove duplicate entries from the result of `compgen -W'

2014-09-07 Thread Chet Ramey
On 9/4/14, 10:33 PM, Clark Wang wrote: > See following example: > > $ echo $BASH_VERSION > 4.3.18(1)-release > $ compgen -W 'hello hello' h > hello > hello > $ > > It'll be good if only one "hello" is outputted. `complete' and `compgen' only generate lists of possible completions. Re

Re: Why do associative arrays have a space before the closing )?

2014-09-07 Thread Chet Ramey
On 9/5/14, 5:30 PM, lolilolicon wrote: > In the `declare -p` output, I mean: > > % bash -c 'declare -A x; x=([foo]=bar [x]=y); declare -p x;' > declare -A x='([foo]="bar" [x]="y" )' > > Does it serve any purpose? Just curious. > It's an artifact of how the code is written. There's no s

Re: ^L doesn't clear screen

2014-09-07 Thread Chet Ramey
On 9/6/14, 8:24 PM, ch...@cfajohnson.com wrote: > Bash Version: 4.3 > Patch Level: 24 > Release Status: release > > Description: > ^L doesn't clear the screen >lithist is on, but prints literal ^J instead of NL >This is terminal-independent (mate-terminal, xterm, rxvt) > > Repeat-

read -e does not restore terminal settings correctly when interrupted if a trap is set

2014-09-07 Thread mickael9
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/local