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

Re: [PATCH] vared: Escape empty elements of arrays



Daniel Shahaf wrote:
> — it seems to be impossible for the result of a vared operation to
> include empty elements.  In particular, editing an array with empty
> elements in master silently drops them.  With the patch, the elements
> would become «''» (two bytes).

For editing arrays, I typically use the following:

  alias lvared="IFS=\$'\n\n' vared"

That preserves empty elements from blank lines.

Oliver



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