[Top][All Lists]

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

Bash sometimes cannot find aliases

From: Dan Zwell
Subject: Bash sometimes cannot find aliases
Date: Thu, 28 Jan 2010 02:55:30 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20100120 Shredder/3.0.1

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-unknown-linux-gnu' -DCONF_VENDOR='unknown' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -march=x86-64 -mtune=generic -O2 -pipe uname output: Linux mordor 2.6.32-ARCH #1 SMP PREEMPT Mon Jan 18 23:30:46 CET 2010 x86_64 Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz GenuineIntel GNU/Linux
Machine Type: x86_64-unknown-linux-gnu

Bash Version: 4.1
Patch Level: 2
Release Status: release

When I attempt to run an alias, Bash occasionally says the command is not found. Re-running the command generally succeeds. This also occurs with aliases that are named after existing programs. For example, running "ls", which is aliased to "ls --color", occasionally results in "ls" being run without the "--color" argument (the alias is bypassed).

This problem seems to occur once every few hundred aliased commands I run. It seems more frequent immediately after sourcing a .bashrc file. I cannot reproduce it with a loop that repeatedly runs an aliased command.

Is this a known issue? I may be able to help debug this (perhaps by modifying my build to log state when a command is not found).


reply via email to

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