source:
trunk/essentials/app-shells/bash/examples/functions/autoload.v2@
3506
| Last change on this file since 3506 was 3228, checked in by , 19 years ago | |
|---|---|
| File size: 3.9 KB | |
| Line | |
|---|---|
| 1 | # |
| 2 | # An almost ksh-compatible `autoload'. A function declared as `autoload' will |
| 3 | # be read in from a file the same name as the function found by searching the |
| 4 | # $FPATH (which works the same as $PATH), then that definition will be run. |
| 5 | # |
| 6 | # To do this without source support, we define a dummy function that, when |
| 7 | # executed, will load the file (thereby re-defining the function), then |
