Re: Problem with reading file and executing other stuffs?

2007-11-12 Thread Hugh Sasse
On Mon, 12 Nov 2007, Horinius wrote: > > > Hugh Sasse wrote: > > > > OK, if it is in fields, like /etc/passwd, then awk is probably more > > suited to this problem than reading it directly with shell script. > > > > If it has some delimited keywor

Re: Problem with reading file and executing other stuffs?

2007-11-08 Thread Hugh Sasse
On Thu, 8 Nov 2007, Horinius wrote: > Hugh Sasse wrote: > > Again, what problem are you trying to solve, if any? > > > I'm doing some processing in a big file which is well formatted. It's sort > of a database table (or a CVS file if you like). Every line con

Re: Problem with reading file and executing other stuffs?

2007-11-02 Thread Hugh Sasse
On Fri, 2 Nov 2007, Horinius wrote: > > > > Hugh Sasse wrote: > > > > On Fri, 2 Nov 2007, Horinius wrote: > >> I've found that if the last line isn't terminated by a new-line, that > >> line > >> can't be read. This seems

Re: Problem with reading file and executing other stuffs?

2007-11-02 Thread Hugh Sasse
On Fri, 2 Nov 2007, Horinius wrote: > > It's a pity that the filename can't be put before the while loop or it'll be > a lot easier to read, esp when the while loop is very big. (Once more, no > need to answer to this comment of mine :p ) The while loop should never be very big. Functions and

Re: Bug in getcwd implementation in lib/sh/getcwd.c

2007-10-10 Thread Hugh Sasse
On Tue, 9 Oct 2007, Ian Campbell wrote: > Fix: > > The fix is really to pre-seed config.cache so that it knows that the uclibc > version of getcwd() does the right thing but the fix for the problem in > lib/sh/getcwd.c is the patch below from my colleague Christian Limpach. > > Index: bash-3.2/l

Re: inconsistent output for cd

2007-04-03 Thread Hugh Sasse
On Tue, 3 Apr 2007, Chet Ramey wrote: > > [...] and there appear to > > be no options at all to turn this superfluous output off. > > This is, as Eric Blake noted, required POSIX behavior. As to the manual: It is an interesting position for POSIX to take, given that in general Unix is s

Re: How to uninstall Bash ??

2007-02-09 Thread Hugh Sasse
On Fri, 9 Feb 2007, San wrote: > Dear Sir, > > I am using "Red Hat Linux 9.0 (kernel : 2.4.20 -8)". I have downloaded all > the files of OK. (I'm not familiar with that release, but unix knowledge applies) > Bash 3.2 (including the info files). I would like to know how to do the > follo

Re: Help me upgrading Bash

2007-02-08 Thread Hugh Sasse
On Thu, 8 Feb 2007, San wrote: > Dear Sir, > You will need to tell people, generally in cases like this, what your platform is. > I have tried installing the latest version of BASH (3.2) but whenever i > start the terminal, & type "bash --version" but still i get v2.05. Please > tell me in d

Re: readline: edit (mode:vi) means eol unreachable

2007-02-08 Thread Hugh Sasse
On Thu, 8 Feb 2007, Chet Ramey wrote: > Hugh Sasse wrote: > > >> either they need to be in termcap/terminfo or you need to bind them > >> yourself in .inputrc. If the key sequence isn't bound, it will be > > > > Either strategy is equally valid? W

Re: readline: edit (mode:vi) means eol unreachable

2007-02-08 Thread Hugh Sasse
On Wed, 7 Feb 2007, Chet Ramey wrote: > Hugh Sasse wrote: > > >> I'm not sure I understand the question. If the termcap/terminfo entries > > > > The question is about the vi edit mode for a correctly configured > > terminal, with no personalization. Sho

Re: readline: edit (mode:vi) means eol unreachable

2007-02-05 Thread Hugh Sasse
On Mon, 5 Feb 2007, Chet Ramey wrote: > Hugh Sasse wrote: > > >> provide the right entries that allow the key sequences output by the > >> arrow keys to be bound to the motion commands you want. You can do > >> this yourself; the easiest way to find out the key

Re: readline: edit (mode:vi) means eol unreachable

2007-02-05 Thread Hugh Sasse
On Sun, 4 Feb 2007, Chet Ramey wrote: > Hugh Sasse wrote: > > On Thu, 1 Feb 2007, Chet Ramey wrote: > > > If I invoke an xterm from my session, using it with Exceed > > version 8, I get a different kind of bug, namely that moving left > > with the cursor key t

Re: readline: edit (mode:vi) means eol unreachable

2007-02-05 Thread Hugh Sasse
On Thu, 1 Feb 2007, Thomas Dickey wrote: > Hugh Sasse <[EMAIL PROTECTED]> wrote: > > > I see that a terminfo entry for PuTTY is on the wishlist. So meanwhile > > I've asked them to re-examine this. > > On PuTTY developer's wishlist, I assume. Yes, sorr

Re: readline: edit (mode:vi) means eol unreachable

2007-02-01 Thread Hugh Sasse
On Thu, 1 Feb 2007, Chet Ramey wrote: > Hugh Sasse wrote: > > I have a problem with readline I think -- my setup is best described: > > Sorry, I can't reproduce this with xterm or Mac OS X Terminal over ssh. > I don't have or use Putty. Well, given that I've no

readline: edit (mode:vi) means eol unreachable

2007-02-01 Thread Hugh Sasse
I have a problem with readline I think -- my setup is best described: valyus hgs hgs 30 $ echo $BASH_VERSION 3.2.9(1)-release valyus hgs hgs 31 $ cat ~/.inputrc set editing-mode vi valyus hgs hgs 32 $ echo $TERM xterm valyus hgs hgs 33 $ stty -a speed 38400 baud; rows 24; columns 80; intr = ^C; qu

Re: bash 3.1 on Solaris 9

2006-07-18 Thread Hugh Sasse
On Tue, 18 Jul 2006, Bob Proulx wrote: > Chris, [...] > > The third part is Sun Freeware which I always thought was you guys > > anyway but apparently not. > > I am not familiar with Sun Freeware. Others on the mailing list might http://sunfreeware.com/ > I will infer, perhaps incorrec

Re: bash expr problem/bug... 0$val

2005-08-19 Thread Hugh Sasse
On Fri, 19 Aug 2005, [EMAIL PROTECTED] wrote: Description: bash-expr problems... if a=500 i expect "c: 500", but produce 320 if a="z" i expect "c: 0", but produce 40 [...] Repeat-By: # a=500; b="0$[a]"; c=$[b]; echo -e "a: $a\nb: $b\nc: $

Re: Config problems on Solaris9

2005-04-19 Thread Hugh Sasse
On Tue, 19 Apr 2005, Paul Jarc wrote: Hugh Sasse <[EMAIL PROTECTED]> wrote: Where does it normally live? , or another file included there. glark -r \bDIR\b /usr/include:/usr/local/include The shell processes one level of escaping/quoting. I've only known that for, well, too many ye

Re: Config problems on Solaris9

2005-04-19 Thread Hugh Sasse
On Mon, 18 Apr 2005, Chet Ramey wrote: Hugh Sasse wrote: Trying to build bash with the first 16 patches applied using this script [...] gmake[1]: Entering directory `/export/home/Scratch/hgs/bash-3.0/lib/glob' gcc -c -DHAVE_CONFIG_H -DSHELL -I/usr/local/include -I. -I../.. -I../

Config problems on Solaris9

2005-04-18 Thread Hugh Sasse
Trying to build bash with the first 16 patches applied using this script -8<--- #!/bin/bash -x CC=gcc export CC CXX=g++ export CXX MAKE=/usr/local/bin/gmake export MAKE cd bash-3.0 ./configure --enable-alias --enable-arith-for-command \ --enable-array-variables --enable-bang-h