Re: Bug in bash 4.4-beta: suspending and restarting "man" program

2015-10-29 Thread Keith Thompson
"stty -a" on both systems prints: speed 38400 baud; rows 57; columns 237; line = 0; intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 -hupcl -cs

Re: SIGSTOP and bash's time built-in

2015-10-29 Thread Chet Ramey
On 10/26/15 11:59 AM, Stefan Tauner wrote: > Hi, > > I was creating some exercises for my students when I noticed very > strange behavior of the time built-in when sending SIGSTOP to a timed > command interactively (via ^Z): > > $ time sleep 5 > ^Z > [1]+ Stopped sleep 5 > > rea

Re: "su -m" (on Mac) preserves $HOME and $USER but not ~

2015-10-29 Thread Chet Ramey
On 10/29/15 1:02 PM, d...@dabe.com wrote: > Machine Type: x86_64-apple-darwin13.4.0 > > Bash Version: 4.3 > Patch Level: 42 > Release Status: release > > Description: > > I'm hoping this issue has been solved before, but I couldn't > find any answers on the 'Net... > > When I

Re: Bug in bash 4.4-beta: suspending and restarting "man" program

2015-10-29 Thread Mike Frysinger
what does `stty -a` show on the two systems ? what version of readline are you using on both ? -mike signature.asc Description: Digital signature

Re: "su -m" (on Mac) preserves $HOME and $USER but not ~

2015-10-29 Thread Dabrien 'Dabe' Murphy
On 10/29/15, 4:00 PM, Greg Wooledge wrote: Do you have a PROMPT_COMMAND variable? Or something unusual in your PS1 variable? (Doesn't look it from the copy/paste, but you never know.) Or do you have a DEBUG trap? Oh yeah, I definitely make extensive use of the PROMPT_COMMAND; that's how I st

Re: $PS0 patch

2015-10-29 Thread Dan Stromberg
On Thu, Oct 29, 2015 at 4:35 PM, Chet Ramey wrote: > On 10/24/15 10:00 PM, Dan Stromberg wrote: > > > > I've created a small diff against tonight's bash master branch for > > displaying a (single!) prompt after reading a command but before > executing > > said command. > > > > It's kind of like t

Re: $PS0 patch

2015-10-29 Thread Chet Ramey
On 10/29/15 5:03 PM, Dan Stromberg wrote: > > Hello? I sent the message I'm replying to 5 days ago, and no one has replied. Hi. I take these things on a more-or-less FIFO basis, unless there's a serious bug report in the stream. I finished the BASH_ALIASES thing earlier and just got to yours.

Re: $PS0 patch

2015-10-29 Thread Chet Ramey
On 10/24/15 10:00 PM, Dan Stromberg wrote: > > I've created a small diff against tonight's bash master branch for > displaying a (single!) prompt after reading a command but before executing > said command. > > It's kind of like trapping debug, but it doesn't output the prompt once for > each sub

Re: Bug in bash 4.4-beta: suspending and restarting "man" program

2015-10-29 Thread Keith Thompson
I've found another symptom of the problem. It has something to do with the handling of the TSTP signal (normally sent by typing Ctrl-Z). Running bash 4.4-beta, I type the "cat" command. While "cat" is running, I type Ctrl-Z. Normally this should suspend the "cat" process and give me a shell promp

Re: $PS0 patch

2015-10-29 Thread Eduardo A . Bustamante López
On Thu, Oct 29, 2015 at 02:03:50PM -0700, Dan Stromberg wrote: > Hello? I sent the message I'm replying to 5 days ago, and no one has > replied. Hi Dan, the only one with commit access to bash is Chet Ramey. You'll have to wait a bit more than 5 days for him to see and review your patch, since th

Re: $PS0 patch

2015-10-29 Thread Dan Stromberg
Hello? I sent the message I'm replying to 5 days ago, and no one has replied. Is there anyone on the list with commit access for bash? The reason I don't just use trap DEBUG is that trap debug can be prohibitively verbose at times: $ for i in $(seq 5); do echo $((i*3)); done cmd started 2015 Th

Re: "su -m" (on Mac) preserves $HOME and $USER but not ~

2015-10-29 Thread Greg Wooledge
On Thu, Oct 29, 2015 at 01:02:10PM -0400, d...@dabe.com wrote: > Check out this copy-paste: > > Thu Oct 29 12:32:22 dabe@triton:~> su -m root -c "bash" > Password: > Thu Oct 29 12:32:26 root@triton:~# echo $HOME ... ~ > /Users/dabe ...

"su -m" (on Mac) preserves $HOME and $USER but not ~

2015-10-29 Thread dabe
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: darwin13.4.0 Compiler: clang Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='darwin13.4.0' -DCONF_MACHTYPE='x86_64-apple-darwin13.4.0' -DCONF_VENDOR='apple' -DLOCALEDIR='/usr/loca

Re: unsetting from BASH_ALIASES

2015-10-29 Thread Chet Ramey
On 10/26/15 10:54 PM, isabella parakiss wrote: > man bash claims that unsetting elements from BASH_ALIASES causes them to > be removed from the alias list. This doesn't work and from what I can see > in variables.c there's nothing that's called when an element in a dynamic > variable is unset. >