Operating System - HP-UX
1833694 Members
3657 Online
110062 Solutions
New Discussion

I'm looking for posix shell source code.

 
SOLVED
Go to solution
Wind Boy
Occasional Advisor

I'm looking for posix shell source code.

Hello everyone.

I'm looking for posix soure code.

Where is it?

Could you tell me how get that.

Thanks
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: I'm looking for posix shell source code.

Wind Boy
Occasional Advisor

Re: I'm looking for posix shell source code.

Thanks Pete

Re: I'm looking for posix shell source code.

You mean what HP compile to create /usr/bin/sh and /sbin/sh on HP-UX systems?

Thats not open source software and you can't view it at all.

What are you trying to do?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Pete Randall
Outstanding Contributor

Re: I'm looking for posix shell source code.

I think Duncan hit the nail on the head. I searched google pretty extensively and came up blank, most likely because it's not open source.


Pete

Pete
Ralph Grothe
Honored Contributor

Re: I'm looking for posix shell source code.

As mentioned, this isn't OpenSource.
However, if you are interested in implementation details of shells greatly compliant to POSIX whose source is open there are plenty to choose.
For instance, Bash has a so called Posix Mode which can be enabled by commandline switch or environment variable.
You can download Bash sources from here
http://www.gnu.org/software/bash/
But there are also other shells available in source, like zsh, or pksh (a public domain Korn shell), and many more.
Madness, thy name is system administration
Olivier Masse
Honored Contributor

Re: I'm looking for posix shell source code.

If you're stricly looking for a POSIX shell, the one included FreeBSD and possibly other BSDs is almost POSIX compliant, and from the man page: "it is not a Korn shell clone like pdksh". You could take a look at this one as well.