[PATCH][BZ #15527] strftime_l.c: Support lowercase output
Jakub Martisko
jamartis@redhat.com
Wed Jun 29 07:55:00 GMT 2016
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 <jamartis@redhat.com> 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.
>
More information about the Libc-alpha
mailing list