why do I get an error here?
/ -> set foo = `opget -l “/obj/geo/file1”`
Expression error: Syntax error - extra tokens detected in expression
When this works?
/ -> opget -l /obj/geo/file1
opset -l off /obj/geo/file1
shouldn't $foo be set to “opset -l off /obj/geo/file1”?
simple parsing syntax error
4312 6 1- kahuna031
- Member
- 897 posts
- Joined: July 2018
- Offline
- tamte
- Member
- 8555 posts
- Joined: July 2007
- Offline
- kahuna031
- Member
- 897 posts
- Joined: July 2018
- Offline
hey tamte
Because I want what's returned from the opget function, not the command that executes it:
/ -> set foo = opget -l /obj/geo1/file1
/ -> echo $foo
opget -l /obj/geo1/file1
the `opget` function returns a `opset` command and this is what I want to store in the variable. (what I originally needed is to query the lock state on an operator but then I ran into this thing)
Thx!
Because I want what's returned from the opget function, not the command that executes it:
/ -> set foo = opget -l /obj/geo1/file1
/ -> echo $foo
opget -l /obj/geo1/file1
the `opget` function returns a `opset` command and this is what I want to store in the variable. (what I originally needed is to query the lock state on an operator but then I ran into this thing)
Thx!
B.Henriksson, DICE
- edward
- Member
- 7721 posts
- Joined: July 2005
- Online
- kahuna031
- Member
- 897 posts
- Joined: July 2018
- Offline
- edward
- Member
- 7721 posts
- Joined: July 2005
- Online
- kahuna031
- Member
- 897 posts
- Joined: July 2018
- Offline
-
- Quick Links