bash (all versions) screws up display when a multiply is given

2022-05-04 Thread n952162
In vi mode if you enter, .e.g. 2f) (put the cursur on the second following occurance of a right paren), it works, I think, "virtually", but the displayed line is all garbled.  You can keep editting and create a correct command, but only blindly.

Re: bash (all versions) screws up display when a multiply is given

2022-05-04 Thread n952162
Please disregard that ... there's something there, but I haven't distilled it yet. On 5/4/22 9:06 AM, n952162 wrote: In vi mode if you enter, .e.g. 2f) (put the cursur on the second following occurance of a right paren), it works, I think, "virtually", but the displayed

Funny behaviour of associative arrays

2023-06-26 Thread n952162
Is this correct? declare -A l1 l1=([a]=b [c]=d) echo ${!l1[@]} l1=($(echo [a]=b [c]=d)) echo ${!l1[@]} $ bash  t4 c a [a]=b [c]=d If so, why?  And how can I assign a list of members to an associative array?

non-executable files in $PATH cause errors

2021-01-10 Thread n952162
Hello, I consider it a bug that bash (and its hash functionality) includes non-executable files in its execution look-up and then (inevitably) simply reports an error, because its such files aren't  executable. Perhaps it's there to support PATH look up for arguments to the bash command.  That w

Re: bug-bash Digest, Vol 218, Issue 13

2021-01-12 Thread n952162
harset="ISO-8859-15" On 2021-01-10 at 08:52 +0100, n952162 wrote: Hello, I consider it a bug that bash (and its hash functionality) includes non-executable files in its execution look-up and then (inevitably) simply reports an error, because its such files aren't executable.

Re: bug-bash Digest, Vol 218, Issue 19

2021-01-13 Thread n952162
On 1/13/21 6:00 PM, bug-bash-requ...@gnu.org wrote: and then (inevitably) simply reports an error, because its such files aren't executable. But it is not inevitable. Using 'cp' as an example. Assuming you have /usr/bin in your PATH, but ~/bin is in your PATH before /usr/bin, then try: "tou

unprintable characters in PS1 different on 5.0.3 vs. 5.0.18?

2021-02-07 Thread n952162
Hi, I use this string as my prompt:   $?${boldon}$UCODE\w${boldoff}> where boldon and boldoff are gotten from "tput smso" and "tput rmso".  Works fine on my x86_64 boxes at 5.0.18(1) but on my raspberry-pi, at 5.0.3(1), I need to use \[ and \]. Am I not seeing something?

Re: unprintable characters in PS1 different on 5.0.3 vs. 5.0.18?

2021-02-07 Thread n952162
On 2/7/21 6:04 PM, Chet Ramey wrote: On 2/7/21 11:51 AM, n952162 wrote: Hi, I use this string as my prompt:    $?${boldon}$UCODE\w${boldoff}> where boldon and boldoff are gotten from "tput smso" and "tput rmso". Works fine on my x86_64 boxes at 5.0.18(1) but on my r