Problem changing SALT Setting.

SALT, SPICE, Subversion, etc...

Problem changing SALT Setting.

Postby romilly on Wed May 04, 2016 5:01 pm

When I try to turn SALT's edit confirmation prompt off using ]salt.Settings 'edprompt 0' I get
Command Execution Failed: Invalid setting
⎕SE.SALT.Settings'edprompt 0'
works. What am I doing wrong?
Posts: 6
Joined: Tue May 03, 2016 9:51 am

Re: Problem changing SALT Setting.

Postby DanB|Dyalog on Wed May 04, 2016 5:59 pm

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
      ]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.

Return to Source Code Management

Who is online

Users browsing this forum: No registered users and 1 guest