I think that it would be great to use bash for z/OS, but the current ports that I am aware of do not support local spawn of normal shell commands (_BPX_SHAREAS) like the z/OS UNIX shell. Other than performance, the most important implication of this is that you can't access DD's from shell commands in a batch job since all commands are forked in a separate OMVS address space. I don't view dynamically loaded bash built-ins as a general solution to this.
This would be a major change to the current open source code base, which is probably why it has never been done. Kirk Wolf Dovetailed Technologies http://dovetail.com PS> If you look at IBM's Apache Spark port for z/OS, you will see that it requires the Rocket bash port. I suppose that IBM didn't want to rewrite a bunch of complicate bash scripts to get the port done :-) On Wed, Nov 2, 2016 at 8:49 AM, Rick Troth <[email protected]> wrote: > On 09/29/16 11:16, Jack J. Woehr replied to John McKown: > >> Perhaps the >>> ultimate "illegitimate offspring" would be for IBM to come up with a UNIX >>> shell which also has all the TSO APIs integrated into it. >>> >> >> It's almost like that already. Maybe the next marketing ploy will be to >> rebrand the system zOSnix >> > > I'm seeing increased use of BASH in USS. > BASH has the ability to add commands as loadable modules. The value of > that (compared to an external command) is that they run in the same address > space, so they can affect the state of the shell. > > Years ago, I did some language bindings for a product: Perl, Tcl, Regina, > CMS REXX, ... and BASH. Whatever TSO APIs cannot be driven via 'tsocmd' > could perhaps be integrated as a BASH loadable module. > > Just kinda thinkin out loud. > > -- R; <>< > > > > > > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
