about summary refs log tree commit diff
path: root/Functions/TCP/tcp_sess
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-08-01 11:48:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-08-01 11:48:38 +0000
commit5e7e797ca90cd1c1b7ab54d39118f0b7469f348f (patch)
treed2b23a1d1d295b6e6007df82a3ce12d0e75cf4ad /Functions/TCP/tcp_sess
parentdc72699b6c400e530b818250c943587b3ecf663e (diff)
downloadzsh-5e7e797ca90cd1c1b7ab54d39118f0b7469f348f.tar.gz
zsh-5e7e797ca90cd1c1b7ab54d39118f0b7469f348f.tar.xz
zsh-5e7e797ca90cd1c1b7ab54d39118f0b7469f348f.zip
TCP functions: fix some variable handling problems,
also standardise indentation
add-zsh-hook: fix check for existence of hook function in existing hook
Diffstat (limited to 'Functions/TCP/tcp_sess')
-rw-r--r--Functions/TCP/tcp_sess2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/TCP/tcp_sess b/Functions/TCP/tcp_sess
index a07c33a03..cc6d42f80 100644
--- a/Functions/TCP/tcp_sess
+++ b/Functions/TCP/tcp_sess
@@ -17,7 +17,7 @@ if [[ -n $1 ]]; then
     eval $__cmd \$\*
     return
   else
-    TCP_SESS=$1
+    typeset -g TCP_SESS=$1
     return 0;
   fi
 fi