KORN SHELL -U OPTION exception

book

Article ID: 52667

calendar_today

Updated On:

Products

CA Workload Automation Agents DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

Description

Job fails to run script with #!/bin/ksh -u on the first line.

Solution

When a userid is specified as part of the job definition, job runs script with #!/bin/ksh on the first line of the script without problem, but it fails with #!/bin/ksh -u on the first line of the script.

Solution:

Keep the first line of the script as #!/bin/ksh and add the following line on the second line:

set -u

Environment

Release:
Component: SYSAGD