2

How do I escape output in the program providing completion? Suppose:

tcsh% complete foo 'p/*/`mycomp`/'

And mycomp is a Perl program printing this:

#!/usr/bin/perl
print "one\n";
print "two three\n";
print "four\\ five\n";
print "six\\\\ seven\n";

Then when I do:

tcsh% foo <tab>

tcsh still won't give me "two three" or the other two-word entries as single entries, but prints this:

five  four\ one   seven six\\ three two

Where each word (+ backslashes) is a single entry.

1
  • AFAIK I know, this is not possible. But I didn't dig that deep in the source, so I might be wrong. Commented Nov 24, 2014 at 17:41

0

You must log in to answer this question.

Browse other questions tagged .