Hello everyone,
I have a weird problem with one of my scripts. This is the piece that is not working like I want it to:
alias scrHelpEn { /printHelp $true en }
alias -l printHelp { <some code> }
When I call scrHelpEn I get the error "PRINTHELP Unknown command". If I remove the -l switch it is working properly, so I didn't make any typos in the name and the alias itself is working properly. But as soon as I specify the -l switch, it becomes invisible to scrHelpEn while both are in the same script. :S
To make it even more interesting: I used the exact same structure (only a different name for scrHelpEn and different content of printHelp) in another script where it is working properly even with the -l switch. Although local aliases shouldn't interfere with each other, I figured that might be a problem anyway. But even when the script above is the only one loaded, it only works without the -l switch.
I would really like to make this alias local, but I don't see what goes wrong here. I would be very grateful if anyone can tell me what I did wrong (probably some tiny thing I'm just overlooking).
Regards,
Plinfut