Thank you both for your help. Maybe I didn't make things completely clear. For one, sometimes the args are one word, sometimes 2 words, sometimes 5 words. The only way this is known is with the @TAB_COMPLETION array. When a user uses this functionality to complete an arguement, the tab-completion will not automatically quote multi-word arguments, instead it will just complete it as it is in the array. So when I receive the scalar from readline, there is no way to know what are multi-word args, and what are a bunch of single word args... unless either I "quote the arg" in the tab completion array, which would mean they would have to use the " to use the tab completion. Or they would have to manually add the quote in after the tab completion found the arg they wanted. Neither way is prefferable. *sigh* but this is what "management" wants. :(

- Nick

In reply to Re^2: readline and multi-word commands by nick
in thread readline and multi-word commands by nick

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.