Problem changing SALT Setting.

SALT, SPICE, Subversion, etc...
Post Reply
romilly
Posts: 6
Joined: Tue May 03, 2016 9:51 am

Problem changing SALT Setting.

Post by romilly »

When I try to turn SALT's edit confirmation prompt off using ]salt.Settings 'edprompt 0' I get
Command Execution Failed: Invalid setting
but
⎕SE.SALT.Settings'edprompt 0'
works. What am I doing wrong?
DanB|Dyalog

Re: Problem changing SALT Setting.

Post by DanB|Dyalog »

User commands arguments are separated by spaces, you don't need to add quotes around them.
You only need to use quotes when an argument contains spaces, a dash (which is used for delimiting modifiers) or other quotes. You can use quotes or double quotes BTW, in pairs.

In your case you are giving the user command a single argument consisting of the characters "edprompt 0" which is not a valid setting. "edprompt" is a valid setting but "edprompt 0" is not.

You should write (salt. is unnecessary since there is no other user command by the name 'settings')
      ]settings  edprompt  0
or
      ]salt.settings 'edprompt' 0
or any of the 6 other ways (salt., no salt., quoted, not quoted) with the same result.

⎕SE.SALT.Settings is a program that accepts a string as argument which must be quoted (like any string in APL) if it isn't a variable.
Post Reply