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

Re: bash: a: command not found



>>>>> "Rick" == Rick L Mantooth <rickdman cyberramp net> writes:

>> Does anyone know what the plethora of these lines in my xdm-error.log are?
>> 
>> bash: a: command not found
>> bash: a: command not found
>> bash: a: command not found

Rick> Sounds like a "mis-typed alias" line or a line with an "a " 
Rick> (a space anything else) in it. [Make sense?]

You were right!

Somehow, my alias lines are being triggered by each of the
/etc/X11/xdm/* scripts, even though my bash scripts are all written
like this:

    if [ ! -z "$PS1" ]; then
	    # Source global definitions
	    if [ -f /etc/bashrc ]; then
		    . /etc/bashrc
	    fi

	    if [ -f ~/.bash_aliases ]; then
		    . ~/.bash_aliases
	    fi

	    # Set up the prompt
	    PS1='[\u \h \w]$ '
    else
	    unset MAIL MAILCHECK
    fi

If I'm non-interactive, my .bashrc should not be run (which is where
the alias lines were).

I tried upgrading to bash-2.02, but xdm does not seem to work
correctly with that bash.

Does anyone have XDM and bash-2.02 cooperating on Redhat 5.2? Did you
have to do anything special?

			---Kayvan
-- 
Kayvan Aghaiepour Sylvan |Sylvan Associates         | Proud Dad of:
kayvan Sylvan COM        |http://www.isp.net/~kayvan| Katherine Yelena (8/8/89)
(408) 978-1407 PGP OK    |Ask me about Avatar.      | Robin Gregory (2/28/92)



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