[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: closing parenthesis bug
From: |
Chet Ramey |
Subject: |
Re: closing parenthesis bug |
Date: |
Wed, 11 Apr 2001 07:58:04 -0400 |
> Machine Type: i386-unknown-freebsdelf4.2
>
> Bash Version: 2.05
> Patch Level: 0
> Release Status: release
>
> Description:
>
> foo=$(
> case $1 in
> *bar*) echo 1;;
> *) echo 0;;
> esac
> )
>
> echo $foo
>
> This script works with FreeBSD sh (and is properly highlighted by VIM :) ),
> but fails with bash:
Yeah, this is hard to do with a yacc-based parser. Use an open paren
before each case pattern list.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/