Re: Bash script file naming problem?

2009-07-25 Thread Chris F.A. Johnson
On Sat, 25 Jul 2009, Ken Irving wrote: > On Fri, Jul 24, 2009 at 07:36:31PM -0700, michael rice wrote: > > Is there a problem with naming a bash script file "script"? I'm using > > Fedora 11. > > > > ... > > [mich...@localhost ~]$ cat ./bin/script > > #!/bin/bash > > # Sample shell script > > ec

line up completions vertically

2009-07-25 Thread jidanni
You know how it shows us the choices when we hit TAB, # rm /var/tmp/dan_home_bkp2009-07-26-02- dan_home_bkp2009-07-26-02-18-36.bz2 dan_home_bkp2009-07-26-02-27-07.bz2 Well given that we are not going to bother to make the differing endings bold, like in emacs, well, at least we can line them up v

Re: trap ERR shows inconsistent behaviour

2009-07-25 Thread Chet Ramey
Henning Garus wrote: > 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' -DLOCALEDI

Re: Bash script file naming problem?

2009-07-25 Thread Ken Irving
On Fri, Jul 24, 2009 at 07:36:31PM -0700, michael rice wrote: > Is there a problem with naming a bash script file "script"? I'm using Fedora > 11. > > ... > [mich...@localhost ~]$ cat ./bin/script > #!/bin/bash > # Sample shell script > echo "The date today is `date`" > echo Your shell is $SHELL

Re: Bash script file naming problem?

2009-07-25 Thread Chris F.A. Johnson
On Fri, 24 Jul 2009, michael rice wrote: > Is there a problem with naming a bash script file "script"? I'm using Fedora > 11. Most systems already have a command called 'script'. It is not a good idea to use the names of existing commands for your scripts. -- Chris F.A. Johnson, webma

Re: Bash script file naming problem?

2009-07-25 Thread Dave B
On Saturday 25 July 2009, michael rice wrote: > Is there a problem with naming a bash script file "script"? I'm using > Fedora 11. "script" is most likely the name of a command installed on your system (on mine, it's /usr/bin/script). Try "man script" and see. So if you really want to call your s

Bash script file naming problem?

2009-07-25 Thread michael rice
Is there a problem with naming a bash script file "script"? I'm using Fedora 11. Michael [mich...@localhost ~]$ bash --version GNU bash, version 4.0.23(1)-release (i386-redhat-linux-gnu) [mich...@localhost ~]$ cat ./bin/temp #!/bin/bash # Sample shell script echo "The date today is `date`" ech

Re: Prompt length calculation fails when UTF-8 is used within \[ \]

2009-07-25 Thread Lasse Kärkkäinen
Can you reproduce this with bash-4.0 with all 24 patches applied? I still have more testing to do, but I haven't been able to reproduce it on my Mac OS X development machines. Dunno what was wrong, but redownloading the patches solved the patching issue. Compiled with all the patches applied

trap ERR shows inconsistent behaviour

2009-07-25 Thread Henning Garus
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='/usr/share/locale' -DPACKAGE='ba

Re: 'time' redirection, and pipe redirections in general

2009-07-25 Thread Dave B
On Saturday 25 July 2009, Linda Walsh wrote: > AFAIK, I'm still screwed if I want to create more than one > pipe for outputs -- either sending stderr to one pipe and stdout to > another, OR a way of even doing what "tee" does, but built into the > shell, so I could, using the building "tee", a f