Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _describe and literal \n
- X-seq: zsh-workers 38934
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] _describe and literal \n
- Date: Sat, 23 Jul 2016 18:27:05 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=hO6xbl3MJ0AsHHW0oAEerbBNij+GP9FQJaPXFU/0k50=; b=lZwMDne1pv7PraG72drqqlxD7rWFN3+aLfG+cJe1ib2s4KEIcyEu0Ne/NBgSIedPZr P7nbsqw2BJ2mHUUSzfZzsdqtc7htbnA7Qa7zPJDsKdKt1YWaOdR/tXEZZUXupDoe4D1j 9+ZfkJ/U4ZQVGAmTmJa9d+SYvAJz3hHCfjBpNorTt9d8Ljt38lKBoyIDwJ1Fkitib2w1 /ltnlRZ6nXYjf0fNtMZ3ZUfK7DHz08IHWpBSzikPP8dIk7YxsTO1i02iwrJisjJJ+Bdm ndpST43B3tHOoGQV0nhutAdl4jIkAp6eynmJYNluRLVKvBTcdRNEXzgRs23Sjk79ZOkz oeiQ==
- In-reply-to: <5530.1469316428@hydra.kiddle.eu>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160723180430.GA22451@tarsus.local2> <160723130059.ZM19333@torch.brasslantern.com> <20160723212345.GA2982@tarsus.local2> <5530.1469316428@hydra.kiddle.eu>
On Jul 24, 1:27am, Oliver Kiddle wrote:
} Subject: Re: [PATCH] _describe and literal \n
}
} Daniel Shahaf wrote:
} > Current master:
} > % _f() { a=( $'foo:hello\nworld' $'bar:lorem\nipsum' $'baz:lorem\nipsum' ); _describe descr a }
} > % f <TAB>
} > baz
} > foo -- lorem\nipsum
} > bar -- hello\nworld
}
} I'm not especially fond of the \n escapes. Would prefer they were mapped
} to spaces. However, failing to group baz and foo is clearly wrong.
Happens with \t, \a, etc. as well, though not with e.g. a backslash before
a space. So something odd is going on with the string comparisons; maybe
a shared global buffer is getting overwritten during sorting?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author