From owner-freebsd-doc@FreeBSD.ORG Wed Jul 28 20:30:10 2010 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 470421065672 for ; Wed, 28 Jul 2010 20:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 18B718FC19 for ; Wed, 28 Jul 2010 20:30:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o6SKU9xT030300 for ; Wed, 28 Jul 2010 20:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o6SKU9rH030297; Wed, 28 Jul 2010 20:30:09 GMT (envelope-from gnats) Resent-Date: Wed, 28 Jul 2010 20:30:09 GMT Resent-Message-Id: <201007282030.o6SKU9rH030297@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andres Perera Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EE241065691 for ; 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 ; Wed, 28 Jul 2010 20:24:24 +0000 (UTC) Received: by gxk24 with SMTP id 24so2328633gxk.13 for ; 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 ; 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 Sender: Andres Perera <849372@gmail.com> To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: docs/149047: tcsh(1) bears no mention of brace expansion in case labels X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andres Perera List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2010 20:30:10 -0000 >Number: 149047 >Category: docs >Synopsis: tcsh(1) bears no mention of brace expansion in case labels >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 28 20:30:09 UTC 2010 >Closed-Date: >Last-Modified: >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: >Unformatted: