Freek Dijkstra wrote:
Robert T Wyatt wondered why the terminal login produced this line:
-bash: alias: aqua: not found
Benjamin Reed observed:
It looks like you've got something setting a bad alias in ~/.profile
or ~/.bashrc (or there's a fink package doing so, in /sw/etc/profile.d)
I concur. It seems like a bad alias. The alternative that the "alias"
command is not available seems less likely, since the error would
probably have been "bash: alias: command not found: in that case.
So, it is probably a bad alias line, like this:
> alias test= aqua
This is bad, because unlike the tcsh shell, the bash shell does not
allow a space before or behind the "=". Indeed, the above line
produces this error in my bash shell:
"bash: alias: aqua: not found"
<snip>
Robert, can you run this command and see what comes back?
$ grep "aqua" /etc/profile /sw/bin/init.sh /sw/etc/profile.d/*
If one of these files contains a line like
alias test= aqua
Then change it to
alias test=aqua
If the file is somewhere in the /sw directory, please report back to
the list, so that it can be fixed in fink.
Regards,
Freek
Thanks Freek!
bash-3.00$ grep "aqua" /etc/profile /sw/bin/init.sh /sw/etc/profile.d/*
/sw/etc/profile.d/procheck.csh:# @@_aqua_program_directory_@@
below to point to the
/sw/etc/profile.d/procheck.csh:# directories containing the
procheck and aqua executables
/sw/etc/profile.d/procheck.csh:alias aquapro $prodir'/aquapro.scr'
/sw/etc/profile.d/procheck.csh:# Aliases are initialised by typing 'aqua'
/sw/etc/profile.d/procheck.csh:if ( ! $?aquaroot ) setenv
aquaroot @@_aqua_program_directory_@@
/sw/etc/profile.d/procheck.csh:if ( "`alias aqua`" == "" ) alias
aqua 'source $aquaroot/aqsetupi'
/sw/etc/profile.d/procheck.sh:# @@_aqua_program_directory_@@ below
to point to the
/sw/etc/profile.d/procheck.sh:# directories containing the
procheck and aqua executables
/sw/etc/profile.d/procheck.sh:alias aquapro=$prodir'/aquapro.scr'
/sw/etc/profile.d/procheck.sh:# Aliases are initialised by typing 'aqua'
/sw/etc/profile.d/procheck.sh:if [ -z "$aquaroot" ]; then
/sw/etc/profile.d/procheck.sh: aquaroot=@@_aqua_program_directory_@@
/sw/etc/profile.d/procheck.sh: export aquaroot
/sw/etc/profile.d/procheck.sh:if [ "`alias aqua`" = "" ]; then
/sw/etc/profile.d/procheck.sh: alias aqua='source $aquaroot/aqsetupi'
# This needs a SH equivalent !!!
bash-3.00$
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel