Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

bash error message help? 1

Status
Not open for further replies.

BobMCT

IS-IT--Management
Sep 11, 2000
756
US
unexpected EOF while looking for matching `"'

I am receiving this error from a bash script I'm running. Is it trying to tell me that it is looking for a ` or " or ' character?

I've checked and had others check and I cannot find ANY backtics in my script and ANY/ALL uses of " or ' are definitely paired.

Any ideas as to what I might look for next???

Thanks [dazed]
 
Hi

BobMCT said:
Is it trying to tell me that it is looking for a ` or " or ' character?
If not sure, try them :
Code:
[blue]master #[/blue] bash <<EOS
echo `foo
EOS
bash: bad substitution: no closing "`" in `foo

[blue]master #[/blue] bash <<EOS
echo "foo
EOS
bash: line 1: unexpected EOF while looking for matching `"'
bash: line 2: syntax error: unexpected end of file

[blue]master #[/blue] bash <<EOS
echo 'foo
EOS
bash: line 1: unexpected EOF while looking for matching `''
bash: line 2: syntax error: unexpected end of file
So look for an unclosed double quote ( " ).

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top