introducing BASHRC env var

2006-03-27 Thread Robinson, Mark
Greetings Attached is a little hack which allows you to define an alternative to ~/.bashrc by setting the BASHRC environment variable. This was useful to me since I am unable to modify ~/.bashrc on a customer site to my taste without incurring the wrath of other folks using the same user

RE: Keybinding yank 0th arg, delete backward argument

2006-03-27 Thread Com MN PG P E B Consultant 3
(1) yank 0th arg, similar to yank-last-arg, but copies the command part of the previous line into the current buffer. Example: The previous line was /usr/local/bin/perl myprog.pl then yank-0th-arg should insert /usr/local/bin/perl into the buffer. M-0 M-. (digit-argument

exit status when setting local variables

2006-03-27 Thread Mike Frysinger
not sure if this is a bug or feature ... take this little snippet: testit() { local foo=$(false) ; echo $? foo=$(false) ; echo $? } when we run the code, the output is: 0 1 rather than intuitive: 1 1 -mike ___ Bug-bash mailing list

Re: Bash 3.1 fails to build on AIX

2006-03-27 Thread Chet Ramey
Nigel Horne wrote: Nigel Horne wrote: Since compilation failed bashbug hasn't been installed, so I am having to guess what is wanted. Let me know if you need any more help. Does isinf appear in libc on AIX 5.1? How about isnan? There are man pages for both isinf and isnan, but they seem

Re: echo enhancement leads to confused legacy script tools...

2006-03-27 Thread Ralf Wildenhues
Hello everybody, * Linda W wrote on Mon, Mar 20, 2006 at 10:16:44PM CET: Henrik Nordstrom wrote: Note: As far as I can tell the echo tests in the configure script generated by autoconf-2.59 tests for quite many things but not \digit as far as I can tell. I have not yet looked into the CVS

Re: Backquote Mystery

2006-03-27 Thread Andreas Schwab
Com MN PG P E B Consultant 3 [EMAIL PROTECTED] writes: Wenn you now do echo $e, you should get the following output: Try echo $e. Then read about Word Splitting in the Bash manual. Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux Products GmbH, Maxfeldstraße 5, 90409

Re: echo enhancement leads to confused legacy script tools...

2006-03-27 Thread Paul Eggert
Andreas Schwab [EMAIL PROTECTED] writes: There's a little history here. POSIX 1003.2-1992 said that echo has implementation-defined behavior if given any options, or if any Are you sure about any option? The current spec only talks about -n. Yes, I have the printed copy of POSIX

Re: exit status when setting local variables

2006-03-27 Thread Chet Ramey
Mike Frysinger wrote: not sure if this is a bug or feature ... take this little snippet: testit() { local foo=$(false) ; echo $? foo=$(false) ; echo $? } when we run the code, the output is: 0 1 rather than intuitive: 1 1 It's intentional. `local' returns success if

Re: Bash 3.1 fails to build on OS/X 10.1

2006-03-27 Thread Chet Ramey
Nigel Horne wrote: Uname: Darwin mac.bandsman.co.uk 5.5 Darwin Kernel Version 5.5: Thu May 30 14:51:26 PDT 2002; root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC Power Macintosh powerpc CC: 2.95.2 ./configure worked fine. Apple moved some things around in 10.2. In 10.2 and later, you need to

Line numbering in error messages

2006-03-27 Thread Dirk H. Schulz
Hi folks, I wonder if there is a thorough documentation on line numbering in bash's error messages? I find it often quite misleading and would like to know what I am counting wrong. Any hint or help is appreciated. Dirk ___ Bug-bash mailing