From: Khem Raj <raj.khem@gmail.com>
To: Florian Weimer <fweimer@redhat.com>
Cc: Khem Raj via Libc-alpha <libc-alpha@sourceware.org>,
Hongxu Jia <hongxu.jia@windriver.com>
Subject: Re: [PATCH] timezone: re-written tzselect as posix sh
Date: Thu, 2 Dec 2021 08:15:53 -0800 [thread overview]
Message-ID: <CAMKF1sriA674_bgVxB8nxi3Ntpav+3Svq9AV3VSRxTjS7Rt=Ew@mail.gmail.com> (raw)
In-Reply-To: <87v9072f0k.fsf@oldenburg.str.redhat.com>
On Thu, Dec 2, 2021 at 7:38 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * Khem Raj via Libc-alpha:
>
> > To avoid the bash dependency.
> >
> > Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> > timezone/tzselect.ksh | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh
> > index 18fce27e24..7705df83d7 100755
> > --- a/timezone/tzselect.ksh
> > +++ b/timezone/tzselect.ksh
> > @@ -1,4 +1,4 @@
> > -#!/bin/bash
> > +#!/bin/sh
> > # Ask the user about the time zone, and output the resulting TZ value to stdout.
> > # Interact with the user via stderr and stdin.
> >
> > @@ -34,7 +34,7 @@ REPORT_BUGS_TO=tz@iana.org
> >
> > # Specify default values for environment variables if they are unset.
> > : ${AWK=awk}
> > -: ${TZDIR=`pwd`}
> > +: ${TZDIR=$(pwd)}
> >
> > # Output one argument as-is to standard output.
> > # Safer than 'echo', which can mishandle '\' or leading '-'.
>
> Is this really a bashism? I'm surprised.
you are right. I tested it on bash/dash/zsh/ash it works as expected.
Let me find
the real reason for this patch and come back.
>
> Thanks,
> Florian
>
next prev parent reply other threads:[~2021-12-02 16:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-02 7:06 [PATCH] Remove bash dependency for nscd init script 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 [this message]
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
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='CAMKF1sriA674_bgVxB8nxi3Ntpav+3Svq9AV3VSRxTjS7Rt=Ew@mail.gmail.com' \
--to=raj.khem@gmail.com \
--cc=fweimer@redhat.com \
--cc=hongxu.jia@windriver.com \
--cc=libc-alpha@sourceware.org \
/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).