[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[wishlist] avoid empty statements in shell scripts
From: |
Roland Illig |
Subject: |
[wishlist] avoid empty statements in shell scripts |
Date: |
Thu, 26 Feb 2004 18:59:25 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040122 Debian/1.6-1 |
Hi,
I sometimes get ./configure scripts that have a syntax error near an
`else'. The reson for this is that some shells don't like
if true; then
else
fi
Instead they expect
if true; then
:
else
:
fi
The first code is often generated by a statement like
AC_CHECK_LIB([l], [main], [], [])
I see two possible solutions:
1. replace empty ACTION-IF-* by `:'
2. warn the user about it
What do you think about it?
Roland
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [wishlist] avoid empty statements in shell scripts,
Roland Illig <=