File git-32-20687eff2438980a54dbd073fc4a754d2987faae.patch of Package aaa_base.4819
From 20687eff2438980a54dbd073fc4a754d2987faae Mon Sep 17 00:00:00 2001
From: Werner Fink <werner@suse.de>
Date: Thu, 8 Feb 2018 09:12:02 +0100
Subject: [PATCH] For ksh use builtin keyword 'function' to
make sure that the keyword 'typeset' really set the
variable IFS to be local within the function _ls.
Signed-off-by: Werner Fink <werner@suse.de>
---
files/etc/profile.d/ls.bash | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/files/etc/profile.d/ls.bash b/files/etc/profile.d/ls.bash
index 3d68ac9..a2b3fa0 100644
--- a/files/etc/profile.d/ls.bash
+++ b/files/etc/profile.d/ls.bash
@@ -56,10 +56,9 @@ case "$-" in
test -s /etc/profile.d/ls.zsh && . /etc/profile.d/ls.zsh
;;
ksh)
- _ls ()
- {
+ function _ls {
typeset IFS=' '
- command ls $LS_OPTIONS ${1+"$@"}
+ command -p ls $LS_OPTIONS ${1+"$@"}
}
alias ls=_ls
;;
--
2.12.3