Opatch command errors with "tr: extra operand" and "line 384 [: =: Unary Operator Expected" (Doc ID 1551584.1)

Last updated on JUNE 01, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

This is observed , when a one character filename exist in current directory then OPatch gives out this error:

tr: extra operand `x'

Try `tr --help' for more information.

/u01/app/oracle/product/11.2.0.3/dbhome_1/OPatch/opatch: line 384: [: =: unary operator expected

Changes

Installed newer version of OPatch

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms