-   Linux - Newbie (
-   -   very newbie alias question (

ffang 09-04-2003 07:41 PM

very newbie alias question
I created an .alias file, only put one simple line in it:

alias test1 cd $HOME/develop/test1

I got twice of the errors:
> 'test1' not found
> 'cd $HOME/develop/test1' not found

It should be a very simple thing. I typed the this line in a shell, the same error. But if I type 'cd $HOME/develop/test1', it is fine.

What is wrong with my alias?


darthtux 09-04-2003 07:45 PM

Put it in the file

ffang 09-04-2003 07:56 PM

The same thing.

darthtux 09-04-2003 07:59 PM

Sorry, try
alias test1='cd $HOME/develop/test1'

ffang 09-04-2003 08:46 PM

Yeeees, it works this time!
I don't understand, alias is very old tool. Seems it changed now.

Thank you so much!


All times are GMT -5. The time now is 08:58 AM.