Thursday, 15 July 2010

setenv - tcsh 6 gives error for quote marks -



setenv - tcsh 6 gives error for quote marks -

i run software generates next script.

#!/bin/tcsh -f setenv 'cds_lic_file' '5280@sjflex5' setenv 'lm_license_file' '5280@mammoth.xyz.xyz'

this works fine on redhat ee50.

on redhat ee60 broken , gives next error.

setenv: variable name must begin letter.

i have no command on script generation process nor can alter redhat ee60 installation on targeted machine. other way patch , create work?

thanks, gert

i'm not familiar character classes in regular expressions you'll thought , can add together completeness , elegance ;-):

software_that_generates_following_script \ | sed "s/setenv[ \t]* '\([0-9a-za-z_]*\)'/setenv \1/" \ > generated_shell_script

perhaps helps...

tcsh setenv

No comments:

Post a Comment