49
edits
No edit summary |
|||
| Line 10: | Line 10: | ||
Used to give alternate name to commands or create custom commands in the current context. | Used to give alternate name to commands or create custom commands in the current context. | ||
Aliases do not take any parameters and run the command or script verbatim. If a for example an alias of named 'bob' is set to 'echo', it will always run exatly 'echo' which will print nothing, even if you run 'bob "some text". The second paramter will be ignored. | Aliases are not functions. Aliases do not take any parameters and run the command or script verbatim. If a for example an alias of named 'bob' is set to 'echo', it will always run exatly 'echo' which will print nothing, even if you run 'bob "some text". The second paramter will be ignored. | ||
== Examples == | == Examples == | ||