Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Expanding quotes



On Dec 17,  3:48pm, Yuri D'Elia wrote:
} Subject: Expanding quotes
}
} touch file file\' file\"
} ls *\"<TAB>
} 
} results in:
} 
} % ls file file\" file\'

Hmm, somewhere down in the completion internals the code that sets the
PREFIX string is re-quoting both the backslash and the single quote.
When this is re-interpolated by the expand-word code it turns into
the empty string, so you get the expansion of "*".

} % ls *[\']<TAB>
} 
} doesn't expand

Same problem, except you get the expansion of *[] which is an invalid
pattern and hence nothing.

There's a basic conflict in the completion system in that it can't "know"
if you mean for the literal string backslash-quote to be completed, or if
you mean for the backslash to have its usual semantic effect on the quote.



Messages sorted by: Reverse Date, Date, Thread, Author