help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Announcement: Started project to parse bash script to AS


From: Chet Ramey
Subject: Re: [Help-bash] Announcement: Started project to parse bash script to AST.
Date: Mon, 24 Jul 2017 11:17:21 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

On 7/22/17 8:33 PM, Mike Mestnik wrote:

> I've been working off of observation and thus far I've seen bash do a
> number of things I wish it wouldn't like failing on both of these.
> 
> address@hidden:~$ case in in  a) ;; esac) ;;
> bash: syntax error near unexpected token `)'
> address@hidden:~$ case in in  a) ;; esac | a) ;;
> bash: syntax error near unexpected token `)'

These are both syntax errors. Why would you rather the shell not
catch them?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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