aliases with bash shell
On my old linux box (FC4), I had the following line in my .cshrc file:
alias emacs 'emacs \!* &' On my new computer (Ubuntu 7.10), I'd like to have the same alias. I noticed that there was a .bashrc file, so I tried to put the same line in it. After changing the syntax to: alias emacs='emacs \!* &' it sources, but I get the following error if I try to open a file: $ emacs file.txt [1] 7296 bash: file.txt: command not found which then opens up emacs but not file.txt. Since I'm not the one who wrote the original line, I'm not sure what I need to change or where to even look for info about linux wildcard characters. Thanks in advance for the help. - Ed |
Hi,
And welcome to LQ! Code:
man bash Quote:
Cheers, Tink |
Thank you! For anyone interested, here's the equivalent:
emacs () { emacs "$@" & } |
Well done :}
Nice to see people who can actually read man-pages. Cheers, Tink |
All times are GMT -5. The time now is 07:17 AM. |