Re: minimal expression

2008-06-15 Thread Pierre Gaston
On Sat, Jun 14, 2008 at 11:57 AM, xaviermasr <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm starting to use bash programming and I'd like to know if it can use > minimal expressions (.*?) as in Perl. 'sed' command can use them, but I > think isn't possible within bash commands (as ingrep manipulati

Re: Dr. Evil typed sleep 666; rm -rf /

2008-06-15 Thread jidanni
The following message is a courtesy copy of an article that has been posted to comp.unix.shell as well. Regarding how to defuse $ sleep 666; echo BOOM given only one terminal, m> Here, running bash in a xterm, this works for me: m> ^S ^C ^C ^Q For me in xterm, or even on the Debian sid tty1 conso

minimal expression

2008-06-15 Thread xaviermasr
Hi all, I'm starting to use bash programming and I'd like to know if it can use minimal expressions (.*?) as in Perl. 'sed' command can use them, but I think isn't possible within bash commands (as ingrep manipulating string commands). My main concern is to use bash for file processing. Cheers.

readline does not always redraw line very well

2008-06-15 Thread Jan Engelhardt
Configuration Information [Automatically generated, do not change]: Machine: i586 OS: linux-gnu Compiler: gcc -I/usr/src/packages/BUILD/bash-3.2 -L/usr/src/packages/BUILD/bash-3.2/../readline-5.2 Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHT

Re: [doc] read -t and sockets, devices...

2008-06-15 Thread Stephane Chazelas
On Sat, Jun 14, 2008 at 10:15:06PM -0400, Chet Ramey wrote: > Stephane Chazelas wrote: > >> What about a different $? (like 2 for timeout)? > > That's reasonable. I'm thinking 128+SIGALRM. [...] That makes sense, but it's a bit of a pain to handle. read -t 10 var; ret=$? case $ret in (0) OK;;