diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-18 12:45:57 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-18 12:45:57 +1300 |
commit | edcbf2ae0ff2f2fe84908e17db28228968625614 (patch) | |
tree | c26db696ed34172d0c11bc7a2cd963271cb15637 | |
parent | Add an issue (diff) | |
download | dotfiles-edcbf2ae0ff2f2fe84908e17db28228968625614.tar.gz dotfiles-edcbf2ae0ff2f2fe84908e17db28228968625614.zip |
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.
-rw-r--r-- | ksh/kshrc.d/prompt.ksh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |