Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Those two other alias bugs - w/fix for one
On Mar 18, 10:50pm, Bart Schaefer wrote:
}
} Sadly these are not the same bug (though they must be related somewhere
} in the re-parse-after-expansion pass). Patch below fixes the first one
} but not the second. Maybe there's a better way that catches both.
Both bugs result from the alias expansion text merging with the following
text into a single longer token when the expanded input is re-parsed.
The patch I posted fixes this for the first bug by separating the expansion
into its own token, via an inserted space.
In the case of quote marks, this is not possible -- anything appended to
the quote (except a matching quote) becomes part of the quoted-string.
Therefore I think we really do need to figure out the deeper problem. One
question is, why is the history reconstructed from the lexed token strings
instead of retaining the original input string?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author