lundi 26 septembre 2016

ksh: Strange error when trying to source the ".cshrc" file

I am encountering a strange error when trying to source the ".cshrc" file in a ksh script.

To find the exact problem i wrote the simplest script I could that causes the error.

test.sh:

#!/bin/ksh

. ~/.cshrc

output:

test.sh[3]: .: syntax error at line 73: `if' unmatched

When I try to run the script I just get a syntax error and it fails. I've searched all over and everything I see says to just use "." to source things in ksh scripts, but clearly this isn't working at all...

What is going on here?

Aucun commentaire:

Enregistrer un commentaire