tulsantide
Technical User
Hi,
The following is not working in KSH. Is there a restriction in KSH to not to use "-" in the variable declaration? The same script is working with "under score" though.
#!/bin/ksh
######################################################################
x-y_HOSTLIST=server1,server2
echo "List is :${x-y_HOSTLIST}"
============================
I'm getting the following error
=========================
x-y_HOSTLIST=server1,server2: not found [No such file or directory]
List is :y_HOSTLIST
Please let me know on how to fix the issue.
Thanks
The following is not working in KSH. Is there a restriction in KSH to not to use "-" in the variable declaration? The same script is working with "under score" though.
#!/bin/ksh
######################################################################
x-y_HOSTLIST=server1,server2
echo "List is :${x-y_HOSTLIST}"
============================
I'm getting the following error
=========================
x-y_HOSTLIST=server1,server2: not found [No such file or directory]
List is :y_HOSTLIST
Please let me know on how to fix the issue.
Thanks