KEYSTACK and double-double quotes dropping spaces

Jan 22, 2009
10
0
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?
 
Aug 2, 2011
258
4
Berlin, Germany
this one is funny, too:

>KEYSTACK "abc " "" def""

>abc "def""

or

>KEYSTACK "abc " "" ""

>abc ""
 

rconn

Administrator
Staff member
May 14, 2008
12,557
167
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
 

Similar threads

Replies
2
Views
2K
Support
CSGalloway@nc.rr.com
C