~/.bashrc
My .bashrc has~/.bashrc contains the following -(by default):
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
~/.bash_aliases
myMy .bash_aliases has~/.bash_aliases contains the following -(my definition):
alias define="curl dict://dict.org/d:$1"
alias define="curl dict://dict.org/d:$1"
Expectation
The define heredefine in there is THE alias or the keywordalias so I could use something like the following directly in my shell -(terminal):
$ define internet
define internet
andWhile I expect it should go onto look at dict.org and look up definition of internet and display it to me.
forFor some reason whenever I run it I get the following -
http://paste.debian.net/1130359/I get the following (hosted on paste.debian.net, might disappear in time).
Just to see if I'm doing anything wrong. I did sourcetried sourcing the .bash_aliases~/.bash_aliases in the bashbash session.
Shell
FWIW, I'm running bashbash version 5.0.11 inon Debian Bullseye (currently testing, and planned major upcoming release).
What am I do have dictd but that shouldn't interfere here.doing wrong with my own alias in ~/.bash_aliases?