aboutsummaryrefslogtreecommitdiff
path: root/ksh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-12-18 12:45:57 +1300
committerTom Ryder <tom@sanctum.geek.nz>2016-12-18 12:45:57 +1300
commitedcbf2ae0ff2f2fe84908e17db28228968625614 (patch)
treec26db696ed34172d0c11bc7a2cd963271cb15637 /ksh
parent78d6934584a8f3121ba9565e0c401109d14bd929 (diff)
downloaddotfiles-edcbf2ae0ff2f2fe84908e17db28228968625614.tar.gz
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.
Diffstat (limited to 'ksh')
-rw-r--r--ksh/kshrc.d/prompt.ksh2
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