49
edits
| Line 19: | Line 19: | ||
== Examples == | == Examples == | ||
=== Default values === | === Default values === | ||
* Checks alias 'bob' for script value. No alias exists named 'bob'. | |||
<kua> | |||
> alias bob | |||
Unknown: bob | |||
</kua> | |||
* 'bob' called without a value. No command, variable or alias named 'bob' exist. | * 'bob' called without a value. No command, variable or alias named 'bob' exist. | ||
<kua> | <kua> | ||
| Line 24: | Line 29: | ||
Unknown: bob | Unknown: bob | ||
</kua> | </kua> | ||
* | * Create an alias 'bob' and set to 'echo fred'. | ||
<kua> | <kua> | ||
> alias bob "echo fred" | > alias bob "echo fred" | ||
</kua> | </kua> | ||
* Same as the | * Same as the second example, but now alias 'bob' exists. The 'echo' command in the 'bob' alias script runs, and prints 'fred'. | ||
<kua> | <kua> | ||
> bob | > bob | ||
fred | fred | ||
</kua> | |||
* Same as the first example, but now alias 'bob' exists and shows the value of the alias 'bob' | |||
<kua> | |||
> alias bob | |||
'bob' is 'echo fred' | |||
</kua> | </kua> | ||