From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 70926 invoked by alias); 29 Jun 2016 07:55:26 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 70916 invoked by uid 89); 29 Jun 2016 07:55:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=Case X-HELO: mx1.redhat.com Subject: Re: [PATCH][BZ #15527] strftime_l.c: Support lowercase output To: libc-alpha@sourceware.org References: <576117B9.5080105@redhat.com> From: Jakub Martisko Message-ID: <57737EE8.8070706@redhat.com> Date: Wed, 29 Jun 2016 07:55:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2016-06/txt/msg01191.txt.bz2 Hi Andreas, thanks for your comment. The reason why I sent the patch is that there is a bug/feature request for similar functionality in coreutils' "date" program and the maintainers of coreutils/gnulib do not want to diverge from the glibc interface. Even though the replacing you mentioned does indeed work, built-in version would be imo better (for example when using other shell than bash), especially when all of the needed functionality was already implemented. Jakub On 15.6.2016 11:08, Andreas Schwab wrote: > Jakub Martisko writes: > >> @item ^ >> -The output uses uppercase characters, but only if this is possible >> +The output uses uppercase characters, but only if this is possible. >> + >> +@item # >> +The output uses opposite case characters, but only if this is possible. >> +Can be combined with @samp{^} to produce lowercase characters. >> (@pxref{Case Conversion}). >> @end table > > Bash is using ${x^} and ${x,} for case replacing expansions. > > Andreas. >