[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CONFIG_COMMANDS does not handle an empty second argument.
From: |
Zack Weinberg |
Subject: |
Re: AC_CONFIG_COMMANDS does not handle an empty second argument. |
Date: |
Wed, 6 Feb 2002 15:11:56 -0800 |
User-agent: |
Mutt/1.3.27i |
On Wed, Feb 06, 2002 at 06:51:34PM +0100, Akim Demaille wrote:
>
> | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
> | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
> | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
> |
> | case $ac_dest in
> | esac
> | done
> | EOF
> |
> | Note the empty case statement.
>
> Thanks, I'm applying the following patch.
Thank you for fixing this.
> I'd like to know what shell you used to document this. None of the
> shells I tried (zsh, bash, ash) exhibit such a problem.
It was originally discovered by people using some version of FreeBSD's
/bin/sh. I was able to reproduce it using the version of ash in
Debian unstable.
/tmp $ cat > test.sh
case foo in
esac
/tmp $ sh test.sh
test.sh: 3: Syntax error: end of file unexpected (expecting ")")
/tmp $ ls -l /bin/sh
lrwxrwxrwx 1 root root 3 Mar 8 2001 /bin/sh -> ash
/tmp $ dpkg -l ash | tail -1
ii ash 0.3.8-35 NetBSD /bin/sh
zw