1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

KEYSTACK and double-double quotes dropping spaces

Discussion in 'Support' started by tmpease, Nov 15, 2012.

  1. tmpease

    Joined:
    Jan 22, 2009
    Messages:
    10
    Likes Received:
    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?
     
  2. Frank

    Joined:
    Aug 2, 2011
    Messages:
    258
    Likes Received:
    4
    this one is funny, too:

    >KEYSTACK "abc " "" def""

    >abc "def""

    or

    >KEYSTACK "abc " "" ""

    >abc ""
     
  3. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    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
     

Share This Page