bash-4.4-beta hangs when running 'set --help'
Re: bash-4.4-beta hangs when running 'set --help'
On Tue, Nov 10, 2015 at 04:32:26PM +0800, ziyunfei wrote: > > > Nothing to say? >From subject: "bash-4.4-beta hangs when running 'set --help'" I can confirm this on HP-UX 10.20. Not only hangs: it consumes all available CPU and does not die to SIGTERM. (SIGKILL worked.)
Re: bash-4.4-beta hangs when running 'set --help'
loops forever: set_builtin at ./set.def:654 652 while ((flag_name = internal_getopt (list, optflags)) != -1) 654 switch (flag_name) cheers, pg On Tue, Oct 27, 2015 at 1:25 PM, Greg Wooledge wrote: > On Tue, Nov 10, 2015 at 04:32:26PM +0800, ziyunfei wrote: >> >> >> > > Nothing to say? > > From subject: "bash-4.4-beta hangs when running 'set --help'" > > I can confirm this on HP-UX 10.20. Not only hangs: it consumes all > available CPU and does not die to SIGTERM. (SIGKILL worked.) >
Re: bash-4.4-beta hangs when running 'set --help'
diff --git a/builtins/set.def b/builtins/set.def index f582a41..c585fa5 100644 --- a/builtins/set.def +++ b/builtins/set.def @@ -653,6 +653,9 @@ set_builtin (list) { switch (flag_name) { + case GETOPT_HELP: +builtin_usage (); +return (EX_USAGE); case 'i': /* don't allow set -i */ s[0] = list_opttype; s[1] = 'i'; sincerely, pg
Re: bash-4.4-beta hangs when running 'set --help'
On 11/10/15 3:32 AM, ziyunfei wrote: > Thanks for the report. This will be fixed in the next release of bash. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
Re: bash-4.4-beta hangs when running 'set --help'
and ulimit --help has the same problem too… On 10/27/2015 01:25 PM, Greg Wooledge wrote: On Tue, Nov 10, 2015 at 04:32:26PM +0800, ziyunfei wrote: Nothing to say? >From subject: "bash-4.4-beta hangs when running 'set --help'" I can confirm this on HP-UX 10.20. Not only hangs: it consumes all available CPU and does not die to SIGTERM. (SIGKILL worked.)
Re: bash-4.4-beta hangs when running 'set --help'
On 10/27/15 8:44 AM, Gniourf gniourf wrote: > and ulimit --help has the same problem too… Fixed that already, too. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
${var@P} expansion includes 0x01 and 0x02
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 1 1b 020 5b 6d f 2 40 69 6d 61 64 65 76 3a 7e 24 20 037 I don't think the "1" and "2" bytes should be printed. They're for internal use only, even if they're usually invisible. imadev:~$ printf %s "$red" | od -t x1 000 1b 5b 33 31 6d 005 imadev:~$ printf %s "$reset" | od -t x1 000 1b 5b 6d f 004