Posted on 06-13-2014 10:01 AM
I have a script that i'm putting into Casper for techs to modify a plist on a users computer.
It is using up to $10.
Whenever I run the script field 10 (and 11) return odd results.
example:
#! /bin/sh
echo $1
echo $2
echo $3
echo $4
echo $5
echo $6
echo $7
echo $8
echo $9
echo $10
echo $11
In Remote, add data to fields. in this example the number of the variable.
external image link
when it is run, i get a "/0" and a "/1" no matter what I enter for data.
... anyone have this problem, or am just doing something stoopid?
Peter
Solved! Go to Solution.
Posted on 06-13-2014 11:04 AM
I once had this issue awhile back and some wise folks directed me to enclosing the variables in curly braces, like so-
echo ${10}
echo ${11}
Try that. It should resolve your issue.
Posted on 06-13-2014 11:04 AM
I once had this issue awhile back and some wise folks directed me to enclosing the variables in curly braces, like so-
echo ${10}
echo ${11}
Try that. It should resolve your issue.
Posted on 06-13-2014 11:19 AM
Ah... genius!
Yes, that works just as it should.
Thank you
Peter