Re: Ordering of sh(1) pathname expansion

2023-01-30 Thread Robert Elz
Date:Tue, 31 Jan 2023 02:29:02 + From:Taylor R Campbell Message-ID: <20230131022904.a3a4b60...@jupiter.mumble.net> | In sh(1) pathname expansion, the pattern doesn't constrain ordering, | only inclusion criteria. It appears that NetBSD's sh(1) always sorts

Ordering of sh(1) pathname expansion

2023-01-30 Thread Taylor R Campbell
In sh(1) pathname expansion, the pattern doesn't constrain ordering, only inclusion criteria. It appears that NetBSD's sh(1) always sorts lexicographically with strcmp(3), however. 1. Does POSIX sh guarantee strcmp(3) lexicographic ordering? 2. Does NetBSD sh(1) guarantee strcmp(3) lexicographic

Re: split(1): auto-extend suffix length

2023-01-30 Thread Jan Schaumann
ignat...@cs.uni-bonn.de wrote: > hi, > > On Sun, Jan 29, 2023 at 05:45:15PM -0500, Jan Schaumann wrote: > > > +* sfxlen by one, thereby yielding an additional two characters > > +* and allowing all output files to sort such that 'cat *' yields > > +* the input in order. I.e., the ord

Re: split(1): auto-extend suffix length

2023-01-30 Thread ignatios
hi, On Sun, Jan 29, 2023 at 05:45:15PM -0500, Jan Schaumann wrote: > + * sfxlen by one, thereby yielding an additional two characters > + * and allowing all output files to sort such that 'cat *' yields > + * the input in order. I.e., the order is '... xyy xyz xzaaa This recipe t