From edcbf2ae0ff2f2fe84908e17db28228968625614 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 18 Dec 2016 12:45:57 +1300 Subject: Change syntax of ksh prompt func declaration Turns out that `typeset` only makes a variable local if the function was declared with this syntax. This actually makes a fair bit of sense if I think about it. Wouldn't do this in Bash though. --- ksh/kshrc.d/prompt.ksh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ksh') diff --git a/ksh/kshrc.d/prompt.ksh b/ksh/kshrc.d/prompt.ksh index 942868a5..e8705a8e 100644 --- a/ksh/kshrc.d/prompt.ksh +++ b/ksh/kshrc.d/prompt.ksh @@ -1,5 +1,5 @@ # Frontend to controlling prompt -prompt() { +function prompt { # If no arguments, print the prompt strings as they are if ! (($#)) ; then -- cgit v1.2.3