[GE users] #$ flag

Reuti reuti at staff.uni-marburg.de
Tue Apr 25 16:57:32 BST 2006


Hi,

Am 25.04.2006 um 17:50 schrieb Mark Casella:

> Hi Users,
>
> 	Our SGE users here repeatably have tried to comment out lines in  
> runscripts beginning with an environment variable. They end up not  
> leaving a space between the # and $ and jobs die with misleading  
> messages.
>
> 	I'm sure this is a pretty common gotcha and I know you can  
> redefine #$ to be something else. I am looking for a robust  
> suggestions that the average script will not accidentally create  
> when commenting out a line.

they could put their variables in quotes or use the eval command:

$ xx=date
$ "$xx"
Tue Apr 25 17:55:18 CEST 2006
$ eval $xx
Tue Apr 25 17:55:23 CEST 2006

Then the prefixing will not create the #$ sequence.

HTH - Reuti


> Thanks in advance for suggestions.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list