Re: inconsistent treatment of backslash-bang

2008-07-18 Thread pk
On Friday 18 July 2008 07:35, Lawrence D'Oliveiro wrote: pk wrote: This is documented in man bash, and only happens in interactive shells (not scripts). I just tried putting my six cases into a script, and I get exactly the same sort of output as interactively. On my system, I get this:

Re: removing null elements from an array

2008-07-18 Thread Poor Yorick
Stephane Chazelas wrote: In zsh, removing the empty elements is just a matter of var1=($var1) Wouldn't this corrupt the elements with spaces, just as in bash? -- Yorick

Re: [EMAIL PROTECTED] strings in the web archive

2008-07-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Poor Yorick on 7/18/2008 6:50 AM: | What's up with all the [EMAIL PROTECTED] strings in the web archives for | bug-bash? For example: | | http://lists.gnu.org/archive/html/bug-bash/2008-07/msg00063.html It is the gnu mailing archive's

Re: removing null elements from an array

2008-07-18 Thread Stephane Chazelas
On Fri, Jul 18, 2008 at 08:52:47AM -0400, Poor Yorick wrote: Stephane Chazelas wrote: In zsh, removing the empty elements is just a matter of var1=($var1) Wouldn't this corrupt the elements with spaces, just as in bash? [...] No, zsh doesn't do word splitting (nor filename generation) on

Re: inconsistent treatment of backslash-bang

2008-07-18 Thread Paul Jarc
Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: pk wrote: This is documented in man bash, and only happens in interactive shells (not scripts). I just tried putting my six cases into a script, and I get exactly the same sort of output as interactively. How did you invoke the script? If you do

Re: [EMAIL PROTECTED] strings in the web archive

2008-07-18 Thread Bob Proulx
Eric Blake wrote: According to Poor Yorick: | What's up with all the [EMAIL PROTECTED] strings in the web archives for | bug-bash? For example: | | http://lists.gnu.org/archive/html/bug-bash/2008-07/msg00063.html It is the gnu mailing archive's list way of protecting email address from

command line vi style editing - is that possible?

2008-07-18 Thread ggolub
Hi folks. I am new to bash. I was using korn for long time. One of the feature I really miss is command line vi editing. Here is an example: osql -E -S.! select name from sysdatabases go ! This code will connect to sql database and return name of existing db's. If i want to re-run and edit this

Re: [EMAIL PROTECTED] strings in the web archive

2008-07-18 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bob Proulx on 7/18/2008 10:35 AM: | | Since Nabble generates very annoying behaviors when used to send | messages[1] let me suggest using Gmane instead. | | http://thread.gmane.org/gmane.comp.shells.bash.bugs | |

Re: inconsistent treatment of backslash-bang

2008-07-18 Thread Lawrence D'Oliveiro
Chet Ramey wrote: I already explained that bash follows csh as closely as possible in its history expansion implementation. Well, it doesn't: [EMAIL PROTECTED]:~ /bin/tcsh hypatia /home/ldo echo hi there!0 0: Event not found. hypatia /home/ldo echo hi there!0 0: Event not found. hypatia

Re: inconsistent treatment of backslash-bang

2008-07-18 Thread Lawrence D'Oliveiro
Paul Jarc wrote: Lawrence D'Oliveiro [EMAIL PROTECTED] wrote: pk wrote: This is documented in man bash, and only happens in interactive shells (not scripts). I just tried putting my six cases into a script, and I get exactly the same sort of output as interactively. How did you invoke