Re: Implement BASH_DIRTRIM_TEXT

2020-09-29 Thread Chet Ramey
On 9/28/20 1:54 PM, Mustafa Mohamad wrote:
> 
> See for example 
> https://github.com/zaufi/paludis-autopatches/blob/master/ebuild_unpack_post/app-shells/bash/bash-4.2-unicode-triple-dot-trim-path.patch
> 
> Which replace the default '...' text w/ a single unicode character '…'
> 
> I propose adding such an option in future version to make it much easier to 
> change this.

Thanks for the suggestion.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://tiswww.cwru.edu/~chet/



Change in indirect expansion behavior from 4.4 to 5.0

2020-09-29 Thread Jason Miller
Gentoo linux, GNU bash, version 5.0.18(1)-release (x86_64-pc-linux-gnu)

On the above vesion of bash, the following script will not run the echo command
and print an error.  On bash 4.4 it appears to  treat the ${!foo} the same as
expanding an unset variable and thus outputs "bar":

  unset foo
  echo ${!foo} bar

"shopt -s compat44" does not seem to make a difference

-Jason