next up previous 405
Next: Package aliases
Up: Running a script
Previous: Removing aliases


Executing a script in the current process

The final option is to source your script so that it runs in the current process. The benefit of this technique is that any aliases defined in the current process will be known to your script. For example,

     % source myscript
runs myscript. Any aliases created in myscript will be available to the current process, unlike invocation by name. To save typing you can define an alias to source a script. See the next section on package aliases for an example.

next up previous 405
Next: Package aliases
Up: Running a script
Previous: Removing aliases

C-shell Cookbook
Starlink Cookbook 4
Malcolm J. Currie
2006 November 26
E-mail:ussc@star.rl.ac.uk

Copyright © 2009 Science and Technology Facilities Council