Re: [PATCH 3/4] Fit to Plan 9's ANSI/POSIX compatibility layer
From: brian m. carlson <hidden>
Date: 2020-08-06 23:52:18
Attachments
- signature.asc [application/pgp-signature] 263 bytes
From: brian m. carlson <hidden>
Date: 2020-08-06 23:52:18
On 2020-08-06 at 13:49:43, Kyohei Kadota wrote:
I see. If I'd like to put those wrappers to the repository, is there the best place for them?
If you can stuff them in a shell function, then I'd just put those in a file like t/test-lib-wrappers.sh and conditionally source them from t/test-lib.sh. Otherwise, I'd create a subdirectory of t and then add that to the PATH if necessary. If you're going to use it outside of the testsuite, then maybe compat/scripts might be a good idea.
In fact, Plan 9's ape/sh is pdksh, so it supports "command -v". However I think, like the above comment, it might be better to create the printf(1) wrapper.
Awesome. I haven't used pdksh in a long time, but if it supports that, all the better. I'm surprised it doesn't have printf as a builtin, though. -- brian m. carlson: Houston, Texas, US