From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26575 invoked by alias); 26 Oct 2010 20:27:49 -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: 15497 Received: (qmail 29719 invoked from network); 26 Oct 2010 20:27:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at myproxylists.com does not designate permitted sender hosts) X-Originating-IP: 127.0.0.1 Message-ID: Date: Tue, 26 Oct 2010 23:27:46 +0300 Subject: How to capitalize last character of a string? From: nix@myproxylists.com To: zsh-users@zsh.org User-Agent: SquirrelMail/1.4.20 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Hi, as the subject says, any guidance? TEST="word" print "${(C)TEST[1]}$TEST[2,-1]" Capitalizes the first character but somehow I could not come up with solution other way.