[Wylug-help] bash help

Dan Chicot dan.chicot at gmail.com
Tue Feb 22 23:27:39 GMT 2005


Hello,

Could anybody explain why the following script produces the output it does: -

The script: -

1   #! /bin/bash
2   alias pp="perl"
3   type pp
4   pp

The output: -

pp is aliased to `perl'
./script.sh: line 4: pp: command not found

i.e why can type determin what pp yet the shell can't?

And why does
source script.sh
work ok?

Thanks

Regards

Dan




More information about the Wylug-help mailing list