On Tue, 12 Feb 2013 14:45:26 +0100 "Greg Wooledge" <wool...@eeg.ccf.org> wrote: >There are no literal backslashes in an argument that is >produced by tab completion. The backslashes are a form >of quoting, and they are removed by the calling shell >during the quote removal phase.
When bind -x sets READLINE_LINE backslashes are kept intact. What I meant was that I wrote my own tab completion. >If you believe you have found a bug in parameter expansion, >then simplify the example so that it directly demonstrates >the bug. As I showed in the output, it does not happen all the time. Even the same value of $rest one time works and another time does not. Therefore, looping over a bunch of items is required.