From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9430 invoked by alias); 14 May 2012 20:00:00 -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: 17083 Received: (qmail 17323 invoked from network); 14 May 2012 19:59:49 -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=-0.4 required=5.0 tests=BAYES_00,FAKE_REPLY_C autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at mugenguild.com does not designate permitted sender hosts) Date: Mon, 14 May 2012 21:54:41 +0200 From: Valodim Skywalker To: "zsh-users@zsh.org" Subject: Re: changing case to Title Case Message-ID: <20120514195441.GA20963@mugenguild.com> Mail-Followup-To: "zsh-users@zsh.org" MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <17E2103A984D4F51BF3CC1706E237D57@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I usually split off the extension for this, like: ${(C)foo:r}.${foo:e} Note this might mess up for cases where $foo does not have an extension. The 's is quite a special case, I don't think there's a non-ugly way to handle it... - V --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAk+xYwEACgkQxCa+aHUWYdQ1hwCgqjnKwnb3Oxv2MQuLQJ3tgPfi S74An1TMtnSnZMe53J9wr4/+5QozQ5P+ =cu2u -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--