0022-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch 964 B

123456789101112131415161718192021222324252627
  1. From ba1365f19ccc8378f2fcff892721187537479884 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Wed, 15 Dec 2021 21:47:53 -0800
  4. Subject: [PATCH] tzselect.ksh: Use /bin/sh default shell interpreter
  5. checkbashism reports no issues with tzselect.ksh, therefore using
  6. /bin/sh instead of /bin/bash should be safe and portable across systems
  7. which don't ship bash ( embedded systems )
  8. Upstream-Status: Pending
  9. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  10. Cc: Adhemerval Zanella <adhemerval.zanella@linaro.org>
  11. Cc: Paul Eggert <eggert@cs.ucla.edu>
  12. ---
  13. timezone/tzselect.ksh | 2 +-
  14. 1 file changed, 1 insertion(+), 1 deletion(-)
  15. diff --git a/timezone/tzselect.ksh b/timezone/tzselect.ksh
  16. index 18fce27e24..cc08efb0fb 100755
  17. --- a/timezone/tzselect.ksh
  18. +++ b/timezone/tzselect.ksh
  19. @@ -1,4 +1,4 @@
  20. -#!/bin/bash
  21. +#!/bin/sh
  22. # Ask the user about the time zone, and output the resulting TZ value to stdout.
  23. # Interact with the user via stderr and stdin.