kojiro 1180742640 learn If you have to ask, you probably want to use a function. lhunath 1221483929 forget lhunath 1221483939 learn If you have to ask, you probably want to use a function instead. yitz_ 1258654534 forget yitz_ 1258654547 learn If you have to ask, you probably want to use a function instead. Aliases are not expanded when the shell is not interactive, unless the expand_aliases shell option is set using shopt. lhunath 1265262196 forget lhunath 1265262531 learn Aliasses are useful for simple command renames and only on your prompt. You probably want a function instead: myfunc() { foo "$@" | bar; } lhunath 1265262580 forget lhunath 1265262661 learn If you have to ask, use a function instead: myfunc() { foo "$@" | bar; } lhunath 1391712243 forget lhunath 1391712245 learn An alias makes a derivative of a command (eg. alias l='ls -l'). The alias should accept all the options the original command did. Usually, you DO NOT want an alias, but a function instead, eg. cdw() { cd ~/Documents/work; } greycat 1407430432 forget greycat 1407430434 learn An alias is a short text macro which is expanded when it is the first word of a command. Usually used for quick shortcuts (alias ll='ls -l'). Cannot take arguments like a function. Use a function instead (e.g. mcd() { mkdir -p "$1" && cd "$1"; }) ormaaj 1420963773 forget ormaaj 1420967301 learn An alias is a simple text macro. If the first word of a command is the name of a defined alias, the command is modified prior to evaluation by substituting the alias for the alias's value. The resulting effect is the command prefixed by the value of the alias (basically, see the manual for details). By default, aliases are only enabled in interactive mode and POSIX mode, not scripts. Aliases don't ormaaj 1420967388 forget ormaaj 1420971633 learn Alias expansion is a text macro that prepends to a simple command when the command's first word is the name of a defined alias by substituting that word with the alias's value. Aliases are only enabled in interactive and POSIX modes by default. They don't take arguments or behave like functions. Almost always, use functions instead of aliases. Ex: ls() { command ls --color=auto "$@"; } lhunath 1427822607 forget lhunath 1427822613 learn An alias is a small in-line command name text replacement. They are not commands and cannot take arguments. Only use aliases for expanding things like default command switches: alias l='ls -l'. For everything else, use a function instead: del() { mv -i "$@" ~/.trash; } llua 1511972465 forget llua 1511972549 learn An alias is a small in-line command name text replacement. They are not commands and cannot take arguments. Only use aliases for expanding things like default command switches: alias l='ls -l'. For everything else, use a function instead: del() { mv -i -- "$@" ~/.trash; }