Bash ShellShock patches break "at" job submission of bash scripts

2014-10-29 Thread Marshall Giguere
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAG

Re: [PATCH] bracketed paste support

2014-10-29 Thread Bob Proulx
Daniel Colascione wrote: > Well, I don't know whether Chet left the feature enabled by > default. I hope he did, though, since preventing execution of pasted > commands is one of the feature's key benefits. In bash, you should > be able to execute a pasted command sequence by typing RET after the >

Re: feature: time builtin and file descriptor

2014-10-29 Thread Chet Ramey
On 10/29/14 10:09 AM, Sami Kerola wrote: > Hello, > > Would it make sense to add to 'time' builtin a way to measure how long > a file descriptor is been kept open? Something like this. You can use $SECONDS for this, but you have to do the math and keep track of the file descriptors yourself. Ch

Re: [PATCH] bracketed paste support

2014-10-29 Thread Chet Ramey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/29/14 5:42 PM, Daniel Colascione wrote: > On 10/29/2014 09:35 PM, Pádraig Brady wrote: >> On 10/27/2014 10:35 PM, Daniel Colascione wrote: >> >>> +@item enable-bracketed-paste >>> +@vindex enable-bracketed-paste >>> +If set to @samp{on} and the t

Re: [PATCH] bracketed paste support

2014-10-29 Thread Chet Ramey
On 10/29/14 5:35 PM, Pádraig Brady wrote: > On 10/27/2014 10:35 PM, Daniel Colascione wrote: > >> +@item enable-bracketed-paste >> +@vindex enable-bracketed-paste >> +If set to @samp{on} and the terminal supports bracketed paste mode, >> +configure it to insert each paste into the editing buffer a

Re: [PATCH] bracketed paste support

2014-10-29 Thread Pádraig Brady
On 10/29/2014 09:42 PM, Daniel Colascione wrote: > On 10/29/2014 09:35 PM, Pádraig Brady wrote: >> On 10/27/2014 10:35 PM, Daniel Colascione wrote: >> >>> +@item enable-bracketed-paste >>> +@vindex enable-bracketed-paste >>> +If set to @samp{on} and the terminal supports bracketed paste mode, >>> +

Re: [PATCH] bracketed paste support

2014-10-29 Thread Daniel Colascione
On 10/29/2014 09:35 PM, Pádraig Brady wrote: > On 10/27/2014 10:35 PM, Daniel Colascione wrote: > >> +@item enable-bracketed-paste >> +@vindex enable-bracketed-paste >> +If set to @samp{on} and the terminal supports bracketed paste mode, >> +configure it to insert each paste into the editing buffe

Re: [PATCH] bracketed paste support

2014-10-29 Thread Pádraig Brady
On 10/27/2014 10:35 PM, Daniel Colascione wrote: > +@item enable-bracketed-paste > +@vindex enable-bracketed-paste > +If set to @samp{on} and the terminal supports bracketed paste mode, > +configure it to insert each paste into the editing buffer as a string > +instead of treating the characters p

Re: feature: time builtin and file descriptor

2014-10-29 Thread Greg Wooledge
On Wed, Oct 29, 2014 at 02:09:53PM +, Sami Kerola wrote: > Would it make sense to add to 'time' builtin a way to measure how long > a file descriptor is been kept open? Doesn't really make much sense. If you want multiple independent timers, there's no reason to tie them to open file descript

feature: time builtin and file descriptor

2014-10-29 Thread Sami Kerola
Hello, Would it make sense to add to 'time' builtin a way to measure how long a file descriptor is been kept open? Something like this. -- snip #!/bin/bash exec 42>&0 time --file-descriptor 42 sleep 10 exec 42>&- -- snip $ ./above_script.sh real0m10.012s user0m0.000s sys 0m0.000s T

Re: [PATCH] bracketed paste support

2014-10-29 Thread Chet Ramey
> On 10/27/14, 6:35 PM, Daniel Colascione wrote: > > This patch adds support for "bracketed paste mode" to readline. In > > this mode, readline instructs the terminal to wrap pasted strings in > > special control sequences so that programs can distinguish them from > > typed input. > > Thanks for

Re: PROMPT_COMMAND='history -a; history -n' causes shell hang in OX 10.10 Yosemite / bash 3.2.53

2014-10-29 Thread Chet Ramey
On 10/29/14, 1:31 AM, Graham Jones wrote: > Since upgrading to OS X 10.10 Yosemite and thus bash 3.2.53 use of the > PROMPT_COMMAND='history -a; history -n' > workaround to get a single ksh-style history causes the shell to become less > and less responsive until it permanently hangs. I wasn't a

PROMPT_COMMAND='history -a; history -n' causes shell hang in OX 10.10 Yosemite / bash 3.2.53

2014-10-29 Thread Graham Jones
Since upgrading to OS X 10.10 Yosemite and thus bash 3.2.53 use of the PROMPT_COMMAND='history -a; history -n' workaround to get a single ksh-style history causes the shell to become less and less responsive until it permanently hangs. The problem is somewhat intermitant in terms of how quickly