IBM Support

OA60693: The sed command may ignore the inline #n (no-autoprint) option

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If using sed with a file, and the first two characters are #n
    to enable the no-autoprint (command line -n) option, the output
    should be suppressed.
    
    Verification Steps:
    
    Using example:
       sed "$(cat command_file)" file
    
    1) Verify the first two characters of the command_file are "#n".
       Note, this must be lower case, upper case #N should be
       treated as a comment.
    2) Verify the command, continues to produce output generated
       by sed; while it should be suppressed.
    

Local fix

  • Use the -n invocation on the command line.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * z/OS users of the USS sed command                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When using sed with a file, if the                           *
    * first two characters are #n, it                              *
    * should enable the no-autoprint option,                       *
    * and the output should be suppressed.                         *
    * While sed command may ignore the                             *
    * inline #n if using as below:                                 *
    * sed "$(cat command_file)" file                               *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The #n was only processed correctly when reading the command
    from a command file in sed.
    

Problem conclusion

  • After this PTF is applied, if the first two characters are
    #n, sed will turn on the no-autoprint option, no matter how
    the commands was input to sed.
    

Temporary fix

Comments

APAR Information

  • APAR number

    OA60693

  • Reported component name

    OPENMVS SHELL/U

  • Reported component ID

    5695SCPX2

  • Reported release

    7C0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-12-30

  • Closed date

    2021-01-19

  • Last modified date

    2021-03-15

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UJ04766

Modules/Macros

  • FSUMXSD0
    

Fix information

  • Fixed component name

    OPENMVS SHELL/U

  • Fixed component ID

    5695SCPX2

Applicable component levels

  • R7C0 PSY UJ04766

       UP21/02/03 P F102

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Platform":[{"code":"PF054","label":"z\/OS"}],"Version":"7C0"}]

Document Information

Modified date:
16 March 2021