bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"unexpected end of file" could say more


From: Dan Jacobson
Subject: "unexpected end of file" could say more
Date: 17 Jun 2002 23:08:22 +0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

$ cat oo.sh 
if true
    then :
    else :
    #bla bla bla
$ sh oo.sh 
oo.sh: line 5: syntax error: unexpected end of file

Instead of just saying "syntax error...", why not say what it was we
were looking for, e.g. ),},fi,esac etc.  Here bash is looking for a
"fi" but doesn't say so clearly.  What if there were 3000 lines of
code where the "bla bla bla" is?  In that case we would be looking for
days for the problem.  Help us narrow it down.
-- 
http://jidanni.org/ Taiwan(04)25854780



reply via email to

[Prev in Thread] Current Thread [Next in Thread]