KEYSTACK and double-double quotes dropping spaces

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Jan 22, 2009
10
0
#1
As documented,
KEYSTACK "abc " ""def""​
sends:
abc "def"​

As not documented
KEYSTACK ""abc "" "def"​
sends:
"abc"def​
not:
"abc" def​

All spaces in double-double quoted strings are dropped. Is this a bug?
 
#2
this one is funny, too:

>KEYSTACK "abc " "" def""

>abc "def""

or

>KEYSTACK "abc " "" ""

>abc ""
 

rconn

Administrator
Staff member
May 14, 2008
10,101
85
#3
WAD; KEYSTACK is correct; the help is wrong (or at least incomplete).

Two double quotes does not make a single leading double quote for a string argument, it just makes a single double quote, unrelated to anything that follows. So in your example, what you would want to enter is:

> keystack "" "abc" "" " def"
>"abc" def