From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id HAA28644 for ; Sat, 2 Sep 1995 07:15:09 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA07772 (5.65c/Gatech-10.0-IDA for ); Fri, 1 Sep 1995 17:16:37 -0400 Received: by math (5.x/SMI-SVR4) id AA01675; Fri, 1 Sep 1995 17:11:14 -0400 Resent-Date: Fri, 1 Sep 95 14:14:37 PDT Old-Return-Path: Date: Fri, 1 Sep 95 14:14:37 PDT From: hari@sybase.com (Hariharan Dhandapani) Message-Id: <9509012114.AA05410@tahoe.sybgate.sybase.com> To: zsh-workers@math.gatech.edu Subject: chpwd bug? Resent-Message-Id: <"o-6zs2.0.5Q.nRtHm"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/350 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hi everyone, This is my chpwd function: chpwd() { case ${PWD} in /calm/*) echo "//${NODENAME}:/ccview/norton_hari_vu${PWD}";; *) echo "//${NODENAME}:${PWD}";; esac } The objective is to keep eterm(in emacs) synchronized with the shell(zsh), if the "/calm/*" statement looks like this: /calm/*) echo "//${NODENAME}:/ccview/norton_hari_vu/${PWD}";; it does not work, nothing gets echoed at all, it is as if this line does not exist at all, note the only differnce in the 2 lines is the addition of 1 slash(/) before ${PWD}, when ${PWD} is expanded, there are actually 2 slashes(like in /ccview/norton_hari_vu//calm/repl), i wonder whether the problem is related to my autoremoveslash setting, right now i have it working using the 1st line, but i still think it is a bug in zsh, anyone have any idea what is going on? Thanks, hari