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

Re: append to history entry?



On Dec 28, 11:34pm, Daniel Shahaf wrote:
}
} You can easily convert the string "$1" to a token stream

Which is in fact what ${(z)...} is for.

} however, there
} is no fully robust way to translate that token stream into a list of
} commands without reimplementing the parser.

Compare for example the state machine in zsh-syntax-highlighting's
main-highlighter.zsh ...



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