[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash prints outs leading - in "command not found" reports

From: William D. Colburn (aka Schlake)
Subject: Bash prints outs leading - in "command not found" reports
Date: Fri, 4 Apr 2003 11:22:14 -0700

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' -DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib 
-D_GNU_SOURCE  -O2 -march=i386 -mcpu=i686
uname output: Linux icewing 2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 i686 i686 
i386 GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 2.05b
Patch Level: 0
Release Status: release


When going from bash 2.04.0 to bash 2.05b.0 (either the munged Redhat
version or a plain version I compiled myself) bash no longer seems to
correctly interpret the initial - indicating a login shell.

 address@hidden<~>$ xyzzy
 bash: xyzzy: command not found

 address@hidden<~>$ xyzzy
 -bash: xyzzy: command not found

This is only a cosmetic issue, but it really bugs me.

Type a command that doesn't exist, and notice the name that bash gives
as its own name.  It it was started as a login shell, with argv[0] as
"-bash" then it prints the -.  Older versions don't do that.

I looked and looked, but I can't figure out where that message pops out

reply via email to

[Prev in Thread] Current Thread [Next in Thread]