Re: [PATCH 3/4] Fit to Plan 9's ANSI/POSIX compatibility layer
- From
brian m. carlson <sandals@crustytoothpaste.net>
- Date
- Aug 6, 2020, 23:51 UTC
- Message-ID
- <20200806235139.GB8085@camp.crustytoothpaste.net>
- In-Reply-To
- <CAFMepcn-yWtke7eE006a5RGO6uaScWb2xZe4H5M8X4F_T4Rhbw@mail.gmail.com>
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