From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24203 invoked by alias); 14 May 2012 19:30:58 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17082 Received: (qmail 16170 invoked from network); 14 May 2012 19:30:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.160.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:subject:x-mailer:mime-version:content-type :content-transfer-encoding:content-disposition; bh=Wyos8osi5lOjhLiZywh6TSbKkA5JsbOrBF4DuVFDeno=; b=K7u+Pl1bQw5PqBtd1sgMkGST7DvX/IB7zHdp/PMY7xEQdXDfDho9X5SZ3wI6FvN1Ca 2o6iw9Wi0VLp97gvuFt2u78Ttjm9ODs0AmbJdj4s4E6RM/Fsq2GxUwEF6cdE93tKA0xY v+7NYSYQ6+QeNGuxc8341p28T/0F08auyeM6ceuvBuDEZ2ESbaNZg1LjrLy4pNAUiib2 WRw75sUOo5voRdTxgW/Humz0/7sm2yYFfEREhj9H7cpwbbR6uG9atdZdrpQ04rlIcneY lujRj4hla4Doxnbb5p8yOpw6Se7r1EfDmo+K2Qtx37+bc/Mu197HQSb9NjNpLaTvRpNj sJ8g== Date: Mon, 14 May 2012 15:30:49 -0400 From: TJ Luoma To: "=?utf-8?Q?zsh-users=40zsh.org?=" Message-ID: <17E2103A984D4F51BF3CC1706E237D57@gmail.com> Subject: changing case to Title Case X-Mailer: sparrow 1.5 (build 1043) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline $ foo="ONE TWO thRee FoUR" $ print -r -- "${(C)foo}" will output this: One Two Three Four but this: $ foo="ONE TWO thRee FoUR's" $ print -r -- "${(C)foo}" will give this: One Two Three Four'S Note the S is capitalized $ foo="ONE TWO thRee FoUR's.pdf" $ print -r -- "${(C)foo}" will give this: One Two Three Four'S.Pdf Note that the P in PDF and the S after ' are capitalized. Is there any way to avoid that? TjL