Re: Re: can not set up wrapper for module: nimclient
"'Craig Comstock' via help-cfengine" <[email protected]> Tue, 9 Jul 2024 09:43:46 -0500
| Newsgroups | gmane.comp.sysutils.cfengine.general |
|---|---|
| Message-ID | <CAMDw=qEBbBZKAuUgHow=W=q75as-tsv73FAzx8sKPnHg7VavYQ@mail.gmail.com> |
I checked on an AIX 7.1 instance we use for test/build/dev and see that
ksh/aix has different behavior than bash built-in `[` on linux/etc.
# MOCK=false
# [ -n "$MOCK" = "true" ]
# echo $?
0
# [ -n "$MOCK" ]
# echo $?
0
# [ "$MOCK" = "true" ]
# echo $?
1
Versions I am dealing with on this instance:
# lslpp -L | grep -i ksh
bos.rte.shell 7.1.5.16 C F Shells (bsh, ksh, csh)
# oslevel -r
7100-05
And is it a built-in for ksh? For mine it is:
# whence -v [
[ is a shell builtin
A quick scan of POSIX test (
https://pubs.opengroup.org/onlinepubs/9699919799/) seems to lean towards
"unspecified results" ;)
4 arguments:
If $1 is '!', negate the three-argument test of $2, $3, and $4.
[OB XSI] [image: [Option Start]] If $1 is '(' and $4 is ')', perform the
two-argument test of $2 and $3. [image: [Option End]] On systems that do
not support the XSI option, the results are unspecified if $1 is '(' and $4
is ')'.
Otherwise, the results are unspecified.
Have fun!
Craig
On Mon, Jul 8, 2024 at 10:53 AM 'Vratislav Podzimek' via help-cfengine <
[email protected]> wrote:
> On Mon, 2024-07-08 at 08:49 -0700, Xander Cage wrote:
> > i looked deeper at the shell at /bin/sh in aix....seems this is "Korn
> Shell 88"...about 40 years old...was a good laugh ;-)
> A rare case of something being older than CFEngine. 😄️
>
> --
> Vratislav
>
> --
> You received this message because you are subscribed to the Google Groups
> "help-cfengine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/help-cfengine/85f01bba74a2d2559af7060ed670b652298dc23d.camel%40northern.tech
> .
>
--
*Craig Comstock* (he/him)
CFEngineer/Digger | CFEngine <https://cfengine.com/>
Kansas, USA
<https://www.linkedin.com/company/northern.tech>
<https://twitter.com/northerntechhq> <https://northern.tech>
Northern.tech <https://northern.tech> | Securing the world's connected
devices
--
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/CAMDw%3DqEBbBZKAuUgHow%3DW%3Dq75as-tsv73FAzx8sKPnHg7VavYQ%40mail.gmail.com.