Very simple question may be but not able to get this working....essentially i have a XML file which is internally allows me to pass few arguments to a external program in my case i chose shell script due to unavoidable reasons.
Now it is working for the most part but i hit issue, essentially i am passing 12 arguments from XML to shell script -- passing and consuming arguments in shell worked fine till 9th argument when i hit 10th 11th 12th argument they are concatenating ARG1 with 0 for 10th argument, ARG1 with 1 for 11th argument and Arg1 with 2 for 12th argument.
ARG1=$1 # Name
ARG2=$2 # Text
ARG3=$3 # Model
ARG4=$4 # Network Address
ARG5=$5 # Type
ARG6=$6 # Landscape
ARG7=$7 # Cause
ARG8=$8 # Troubleshooter
ARG9=$9 # Originiating Event
ARGX=$10 # Status
ARGY="$11" # Customer
ARGZ="$12" # Category
so essentially value of ARG10 is ARG1 and 0 for ex lets say you pass ARG1 as "text" and ARG10 as "New" from XML file to shell script but when ARG10 is echoed out in shell script it echoes - "text0" instead of new.
I am very sure this is a silly thing i am doing need some help understanding where i am wrong in coding it.