From: "Zack Weinberg" <zack@owlfolio.org>
To: "Florian Weimer" <fweimer@redhat.com>,
"Florian Weimer" <libc-alpha@sourceware.org>
Cc: "Ross Burton" <ross.burton@intel.com>
Subject: Re: [PATCH] Remove bash dependency for nscd init script
Date: Thu, 02 Dec 2021 12:40:48 -0500 [thread overview]
Message-ID: <c1e5617a-efd2-475e-b89a-df47976a2cc2@www.fastmail.com> (raw)
In-Reply-To: <87r1av2exy.fsf@oldenburg.str.redhat.com>
On Thu, Dec 2, 2021, at 10:40 AM, Florian Weimer via Libc-alpha wrote:
> * Khem Raj via Libc-alpha:
>
>> The nscd init script uses #! /bin/bash but only really uses one bashism
>> (translated strings), so remove them and switch the shell to #!/bin/sh
>
> I believe “echo -n” is still a bashim. The current-POSIX portable
> solution is to use printf. But “echo -n” might actually be *more*
> portable than printf in practice.
printf(1) is reliable enough in practice that autoconf scripts now use it unconditionally (as of 2.70).
zw
prev parent reply other threads:[~2021-12-02 17:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-02 7:06 Khem Raj
2021-12-02 7:06 ` [PATCH] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its empty Khem Raj
2021-12-03 3:44 ` Mike Frysinger
2021-12-02 7:06 ` [PATCH] timezone: re-written tzselect as posix sh Khem Raj
2021-12-02 15:38 ` Florian Weimer
2021-12-02 16:15 ` Khem Raj
2021-12-02 18:55 ` Joseph Myers
2021-12-02 21:30 ` Paul Eggert
2021-12-02 15:40 ` [PATCH] Remove bash dependency for nscd init script Florian Weimer
2021-12-02 15:54 ` Khem Raj
2021-12-02 18:57 ` Florian Weimer
2021-12-02 17:40 ` Zack Weinberg [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1e5617a-efd2-475e-b89a-df47976a2cc2@www.fastmail.com \
--to=zack@owlfolio.org \
--cc=fweimer@redhat.com \
--cc=libc-alpha@sourceware.org \
--cc=ross.burton@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).