Patrick Williams | 0ca19cc | 2021-08-16 14:03:13 -0500 | [diff] [blame^] | 1 | From 2731fa0c7463cd160361a8ac92f3bd7f984d953d Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 18 Mar 2015 00:33:03 +0000 |
| 4 | Subject: [PATCH] timezone: re-written tzselect as posix sh |
| 5 | |
| 6 | To avoid the bash dependency. |
| 7 | |
| 8 | Upstream-Status: Pending |
| 9 | |
| 10 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | timezone/tzselect.ksh | 4 ++-- |
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh |
| 17 | index 18fce27e24..7705df83d7 100755 |
| 18 | --- a/timezone/tzselect.ksh |
| 19 | +++ b/timezone/tzselect.ksh |
| 20 | @@ -1,4 +1,4 @@ |
| 21 | -#!/bin/bash |
| 22 | +#!/bin/sh |
| 23 | # Ask the user about the time zone, and output the resulting TZ value to stdout. |
| 24 | # Interact with the user via stderr and stdin. |
| 25 | |
| 26 | @@ -34,7 +34,7 @@ REPORT_BUGS_TO=tz@iana.org |
| 27 | |
| 28 | # Specify default values for environment variables if they are unset. |
| 29 | : ${AWK=awk} |
| 30 | -: ${TZDIR=`pwd`} |
| 31 | +: ${TZDIR=$(pwd)} |
| 32 | |
| 33 | # Output one argument as-is to standard output. |
| 34 | # Safer than 'echo', which can mishandle '\' or leading '-'. |