Skip to Main Content

General Development Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error while appending path to $ORACLE_HOME

I have a ROFCEarRun.sh file which I'm trying to execute, it reads $ORACLE_HOME from a properties file.
The properties file contains a line with the following property.

ORACLE_HOME=/scratch/oraofss/Ora19c/app/product/19.3/dbhome_1/

When I execute the sh file, I get the following error:

ROFCEarRun.sh: line 100: cd: $'/scratch/oraofss/Ora19c/app/product/19.3/dbhome_1/\r/jdbc/lib/': No such file or directory

I checked the line 100 in the file, it has the following code:

cd $ORACLE_HOME/jdbc/lib/

I verified that the path exists by running ‘cd $ORACLE_HOME/jdbc/lib/’ on the shell.

Can anyone help me understand why that extra ‘\r’ is getting appended after oracle_home in that error? (there are no trailing white space characters in properties file)

Comments
Post Details
Added on Feb 4 2023
0 comments
169 views