Next: Executing a script in the current process
Up: Running a script
Previous: Using aliases to run a script

## Removing aliases

There are two methods. One is permanent; the other overrides an alias for a single command. To remove an alias permanently use the unalias command. This accepts *?[ ] wildcards to match the defined aliases.

                             # Removes aliases called:
% unalias myscript      # myscript
% unalias kap_*         # kap_ followed by zero or more characters
% unalias compres?      # compres followed by a single character
% unalias [f-hz][2-5]   # One of f, g, h, or z then an integer
# between 2 and 5 inclusive


To override an alias, precede the alias with backslash. So suppose you have an alias to prevent you accidently removing a file as shown below.

     % alias rm rm -i

In a script where you know that you want to remove a file, you don't want the script to seek confirmation. So suppose you want to delete file myfile, then you would have a line like

     \rm myfile


Next: Executing a script in the current process
Up: Running a script
Previous: Using aliases to run a script

C-shell Cookbook