Re: Mulit-byte character in prompt/line wrapping issue.

2015-02-27 Thread Chet Ramey
On 2/24/15 5:15 PM, Steve Terpe wrote: > This seems to be related to other issues involving multibyte chars in the > command prompt but is slightly different: > > It seems that when the start of multibyte (2-byte) character falls on the > last column of $COLUMNS, the line wrapping gets confused an

Re: Bugs in ERR and RETURN traps

2015-02-27 Thread Chet Ramey
On 2/19/15 2:54 PM, Paul Donohue wrote: > When an ERR trap is called, ${BASH_SOURCE[0]}, ${FUNCNAME[0]}, and $LINENO > normally indicate the file/function/line which called the command that > returned a non-zero status. This is good. > > However, if an ERR trap is called because a function retu

Re: error parsing file glob when importing function from environment

2015-02-27 Thread Chet Ramey
On 2/26/15 5:24 PM, Stephane Chazelas wrote: > 2015-02-26 16:35:14 -0500, Chet Ramey: >> On 2/26/15 2:37 PM, ad...@ptc.com wrote: >> >>> Bash Version: 4.2 >>> Patch Level: 47 >>> Release Status: release >>> >>> Description: >>> A bash function containing the syntax "files=( !(PAT) )" fails to p