From 849372@gmail.com  Wed Jul 28 20:24:25 2010
Return-Path: <849372@gmail.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3EE241065691
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jul 2010 20:24:25 +0000 (UTC)
	(envelope-from 849372@gmail.com)
Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182])
	by mx1.freebsd.org (Postfix) with ESMTP id DCBD88FC27
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jul 2010 20:24:24 +0000 (UTC)
Received: by gxk24 with SMTP id 24so2328633gxk.13
        for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jul 2010 13:24:24 -0700 (PDT)
Received: by 10.151.77.8 with SMTP id e8mr13100882ybl.224.1280347332747;
        Wed, 28 Jul 2010 13:02:12 -0700 (PDT)
Received: from pote.example.com ([190.142.138.1])
        by mx.google.com with ESMTPS id e7sm6524088ybe.4.2010.07.28.13.01.49
        (version=TLSv1/SSLv3 cipher=RC4-MD5);
        Wed, 28 Jul 2010 13:02:12 -0700 (PDT)
Received: from pote.example.com (localhost [127.0.0.1])
	by pote.example.com (8.14.3/8.14.3) with ESMTP id o6SK1iWj031281
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 28 Jul 2010 15:31:46 -0430 (VET)
	(envelope-from andres@localhost.example.com)
Received: (from andres@localhost)
	by pote.example.com (8.14.3/8.14.3/Submit) id o6SK1ieZ031280;
	Wed, 28 Jul 2010 15:31:44 -0430 (VET)
	(envelope-from andres)
Message-Id: <201007282001.o6SK1ieZ031280@pote.example.com>
Date: Wed, 28 Jul 2010 15:31:44 -0430 (VET)
From: Andres Perera <andres.perera@zoho.com>
Sender: Andres Perera <849372@gmail.com>
Reply-To: Andres Perera <andres@localhost.example.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: tcsh(1) bears no mention of brace expansion in case labels
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         149047
>Category:       docs
>Synopsis:       [patch] tcsh(1) bears no mention of brace expansion in case labels
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    eadler
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 28 20:30:09 UTC 2010
>Closed-Date:    Sun May 06 20:20:30 UTC 2012
>Last-Modified:  Sun May 06 20:20:46 UTC 2012
>Originator:     Andres Perera
>Release:        FreeBSD 8.0-RELEASE-p4 i386
>Organization:
>Environment:
System: FreeBSD pote.example.com 8.0-RELEASE-p4 FreeBSD 8.0-RELEASE-p4 #0: Mon Jul 12 20:22:27 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:
The man page explains that variable expansion and filename
substitution characters are allowed within `case:' labels in `switch'
clauses, but does not mention brace expansion.

As a result, many tcsh scripts show awkward statements such as:

	case foo:
	case bar:
		breaksw;

instead of a more idiomatic approach:

	case {foo,bar}:
		breaksw;

>How-To-Repeat:
	
>Fix:

--- /usr/src/contrib/tcsh/tcsh.man	2009-07-11 01:05:08.000000000 -0430
+++ tcsh.man	2010-07-24 20:36:59.000000000 -0430
@@ -3324,7 +3324,7 @@
 .B endsw
 Each case label is successively matched, against the
 specified \fIstring\fR which is first command and filename expanded.
-The file metacharacters `*', `?' and `[...]'  may be used
+The file metacharacters `*', `?', `{...}' and `[...]'  may be used
 in the case labels, which are variable expanded.  If none
 of the labels match before a `default' label is found, then
 the execution begins after the default label.  Each case

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: eadler 
State-Changed-When: Sun May 6 20:20:28 UTC 2012 
State-Changed-Why:  
tcsh has been updated which may have fixed the issue. in addition tcsh 
is contributed software which means we don't write it, just use it. 
Perhaps upstream would be interested? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149047 
Responsible-Changed-From-To: freebsd-doc->eadler 
Responsible-Changed-By: eadler 
Responsible-Changed-When: Sun May 6 20:20:44 UTC 2012 
Responsible-Changed-Why:  
I closed it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149047 
>Unformatted:
