Skip to content

Bourne Shell cannot be used in z/OS due to non-existing shell option "-l" #42

@mirkubi

Description

@mirkubi

When trying to use "sh" as an executor, it fails on z/OS as by default it uses option "-l" which is not available in z/OS USS sh implementation.
It uses "-L" instead. According gitlab runner documentation, this option is forced.

To make it compatible with z/OS bourne shell, the code change might be needed?

z/OS allowed options:

`Format

[r]sh [B1abCefhiKkLmnPprtuvx] [B1o option] [cmd_file [argument ...]]

[r]sh -S [B1abCefhiKkLmnPprtuvx] [B1o option] [cmd_file [argument ...]]

[r]sh -c cmdstring [B1abCefhiKkLmnPprtuvx] [B1o option] [cmd_name [argument ...]]

[r]sh -s [B1abCefhikLmnPprtuvx] [B1o option] [argument ...]

-L
Makes the shell a login shell,. (A login shell is an interactive
shell.)

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions