in reply to Re^3: Unix Aliases?
in thread Unix Aliases?

I understand this now except for the use of the @my_parms variable. It doesn't appear to be used for anything. I thought it may be a way of passing extra environmental variables into this sub. I tried it and though it didn't fail there was no sign of my test variable anywhere. What IS the purpose of this variable? Cheers, Ronnie

Replies are listed 'Best First'.
Re^5: Unix Aliases?
by pelagic (Priest) on Sep 08, 2004 at 09:24 UTC
    Well in fact our "my_env" is much more complicated and also accepts parameters to change it's behaviour. If your "my_env" does not take parameters just remove it completely. Actually I will remove it from my post above to make it more straight forward.

    pelagic
      Thanks for the information. There is one thing I should mention in case you are unaware of this; I've tested the sub and it works fine except for certain things. In our .profile we have a variable called TWO_TASK and it's set to isw_live, getenv ignores this line and doesn't set up the appropriate environmental variable. Things like PS1 & PS2 are also ignored. This may be intentional but as I can't find any documentation for env I thought I'd let you know. ( I also stuck in a couple of rogue variables fred=flintstone & barney=rubble and they were not picked up either.) Cheers,Ronnie
        I can only understand/comment your .profile when you post it. Either here or maybe in your Ronnie's scratchpad.

        pelagic