Re: Mapfile callback access to current line

2011-01-14 Thread Chris F.A. Johnson
On Mon, 17 May 2010, Chet Ramey wrote: On 4/15/10 11:56 PM, DennisW wrote: Mapfile would be that much more powerful if the callback function had access to the current line. Is there any chance this might be added in the future? Sure, there's a chance. What would be the most useful form? A s

Re: field splitting with IFS non-whitespace

2011-01-14 Thread Chet Ramey
On 1/11/11 3:36 PM, Greg Wooledge wrote: > POSIX 2.6.5 Field Splitting [1] says, in part, > > 1. If IFS is or unset, ... > 2. If IFS is null, ... > 3. Otherwise, ... > b. Each occurrence in the input of an IFS character that is not IFS > white space, along with any adjacent IFS white space

Idle timer to trigger vlock?

2011-01-14 Thread Paul Reilly
Could someone point me in the right direction to understand how the TMOUT variable is monitored, and logs out the session when it's expired? I'm looking for a way to lock a users command session with vlock (or similar) when they are idle for a user-defined time. At the moment, I use TMOUT=7200 but

Re: Arithmetic expansion peculiarity

2011-01-14 Thread Bob Proulx
Joe Lightning wrote: > Description: > Bash doesn't like leading zeros in arithmetic expansion. > > Repeat-By: > echo $(( 09 - 1 )) This is bash FAQ E8. http://www.faqs.org/faqs/unix-faq/shell/bash/ Leading zeros denote octal. In octal t

Re: Arithmetic expansion peculiarity

2011-01-14 Thread Davide Brini
On Thursday 13 Jan 2011 21:11:07 Joe Lightning wrote: > Description: > Bash doesn't like leading zeros in arithmetic expansion. > > Repeat-By: > echo $(( 09 - 1 )) It's all documented. Numbers with leading zeros are treated as octal. In your case,

Arithmetic expansion peculiarity

2011-01-14 Thread Joe Lightning
Configuration Information [Automatically generated, do not change]: Machine: i686 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/u