[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
Description:
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.
2.04.0:
wcolburn@mailhost<~>$ xyzzy
bash: xyzzy: command not found
wcolburn@mailhost<~>$
2.05b.0:
schlake@icewing<~>$ xyzzy
-bash: xyzzy: command not found
schlake@icewing<~>$
This is only a cosmetic issue, but it really bugs me.
Repeat-By:
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.
Fix:
I looked and looked, but I can't figure out where that message pops out
from.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Bash prints outs leading - in "command not found" reports,
William D. Colburn (aka Schlake) <=