Alan,

I think the docs are incomplete, and $() should work in AIX 5.3, too.

On Wed, Aug 1, 2012 at 3:33 PM, Alan Robertson <[email protected]> wrote:

> On 08/01/2012 03:12 PM, David Klann wrote:
> > Hi Jeffrey,
> >
> > On Wed, 1 Aug 2012 13:02:10 -0600 you coerced some electrons to say:
> >
> >> David,
> >>
> >>
> >>>> I didn't intend for there to be any bash-isms.  The only things I
> >>>> know of that I use are $(echo hi) and similar - which I didn't
> >>>> think were bash-only.  If they are, then I should get rid of them.
> >>> I haven't checked lately, but /bin/sh (as in "Bourne") doesn't do
> >>> $(). Should probably stick to backticks for command substitution.
> >>
> >> Depends on your definition of "lately." :-)
> >>
> >> $() became a requirement for /bin/sh implementations in IEEE
> >> 1003.2-1992. That standard codified existing practice, so you'll find
> >> $() in every /bin/sh that's under the drinking age.
> >>
> >> (Me, I stopped using backticks for command substitution in the late
> >> 80's.)
> >>
> >> On even older, non-POSIX Unix-y boxes -- Unix v7 boxes, say -- we'd
> >> still have a problem. Are such boxes a target?
> >>
> >> Boxes that lack /bin/sh, like out-of-the-box Windows machines, are
> >> also a problem.
> > This is what I get for relying on <Dominant-Search-Engine> for answers
> > to such historical questions. Having not used a UNIX(R) system in a
> > while, I believed the first search hit for "bourne shell command
> > substitution -bash". The link is to http://ibm.co/Nmy3ca which appears
> > to be for AIX 5.3. Sigh, it looks like 7.1 is the current release from
> > IBM.
> >
> > Thanks for the additional perspective and reference Jeffrey!
> >
> Some customers still run AIX 5.3 - but I think it goes out of support
> soon (or maybe already has).
>
> --
>      Alan Robertson <[email protected]> - @OSSAlanR
>
> "Openness is the foundation and preservative of friendship...  Let me
> claim from you at all times your undisguised opinions." - William
> Wilberforce
> _______________________________________________
> Assimilation mailing list - Discovery-Driven Monitoring
> [email protected]
> http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
> http://assimmon.org/
>



-- 
Jeffrey Haemer <[email protected]>
720-837-8908 [cell], http://seejeffrun.blogspot.com [blog],
http://www.youtube.com/user/goyishekop [vlog]
*פרייהייט? דאס איז יאַנג דינען וואָרט.*
_______________________________________________
Assimilation mailing list - Discovery-Driven Monitoring
[email protected]
http://lists.community.tummy.com/cgi-bin/mailman/listinfo/assimilation
http://assimmon.org/

Reply via email to