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

Re: Bug with test and quoted comparisons



On 2025-11-21 at 23:33:53, Stephane Chazelas wrote:
> The rest of what I said still stands:
> - zsh should add support for <, > in its [ / test operator to comply to
> POSIX 2024 (or more to the point, to be able to run code written to POSIX
> 2024 especially when in sh emulation). Thanks for bringing that up.
> - if writing a portable script, you may want to restrict yourself to POSIX
> 2018 (or maybe even 2016) feature set as there are still 10 year old non-eol
> systems out there.

Ah, thanks for pointing that out.  We definitely don't want to require
POSIX 1003.1-2024, so I'll adjust that in the testsuite.

I do think it's helpful for zsh to support as much of POSIX as possible,
since that makes it easier for things like editors and scripts running
over SSH to work properly.  But it sounds like y'all are already
planning on adding this to the test operator, so it sounds like we're
good.
-- 
brian m. carlson (they/them)
Toronto, Ontario, CA

Attachment: signature.asc
Description: PGP signature



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