From owner-freebsd-stable@FreeBSD.ORG Wed Feb 6 01:10:09 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 6EE80BD1 for ; Wed, 6 Feb 2013 01:10:09 +0000 (UTC) (envelope-from jdc@koitsu.org) Received: from qmta04.emeryville.ca.mail.comcast.net (qmta04.emeryville.ca.mail.comcast.net [IPv6:2001:558:fe2d:43:76:96:30:40]) by mx1.freebsd.org (Postfix) with ESMTP id 56B10256 for ; Wed, 6 Feb 2013 01:10:09 +0000 (UTC) Received: from omta17.emeryville.ca.mail.comcast.net ([76.96.30.73]) by qmta04.emeryville.ca.mail.comcast.net with comcast id woKw1k0021afHeLA4pA8RM; Wed, 06 Feb 2013 01:10:08 +0000 Received: from koitsu.strangled.net ([67.180.84.87]) by omta17.emeryville.ca.mail.comcast.net with comcast id wpA71k00J1t3BNj8dpA89P; Wed, 06 Feb 2013 01:10:08 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id BBF1E73A31; Tue, 5 Feb 2013 17:10:07 -0800 (PST) Date: Tue, 5 Feb 2013 17:10:07 -0800 From: Jeremy Chadwick To: freebsd-stable@freebsd.org Subject: csh/tcsh: odd %~ prompt variable behaviour Message-ID: <20130206011007.GA72256@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1360113008; bh=hNx6uzv/2yO5hWBcH/033jMVD8leb9TTZ65netiVj90=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=Snq19SJnaHF0HjFEdVmLsd4qTzteIB9Fs4PYM0mMHDLNM+O7dJUpfuXJS+szrAXup wv5RH+73F+yi2fyfLtIq5uP1fKaURBwgC5DMxPKAtcgbQaLZna+8CGaEb9JRsXSEci rB24ufkD7d5tNZ5X+iIodtE2Tqe+oIkWGumN0OXU//wpnvPtm3ZMAdrgPh0hPRlqZ7 NDYh09b7IkSI/kvrNeE3YiU57LM6SILHVrRjVnfv9/V5IWfCWSO6sEKxB9jzmoGmC7 wjpgLug2BD0vqwg5t2tIJlhWWIVvMYGQAvnUbF/w+bN6doWN0H9/UrjIGVDLrTT//d IGmfwgFPmp+BQ== X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2013 01:10:09 -0000 (Please keep me CC'd as I'm not subscribed to the list) System is base/stable/9, r245697. tcsh version is 6.18.01: $ sudo -i root@icarus:~ # sfdjsdj sfdjsdj: Command not found. root@icarus:~ # cd ~root root@icarus:~ # dsjfdsfdsf dsjfdsfdsf: Command not found. root@icarus:~ # cd ~jdc root@icarus:~jdc # sdjfdjkfjdsk sdjfdjkfjdsk: Command not found. root@icarus:/home/jdc # <---- notice sudden prompt change root@icarus:/home/jdc # cd ~root root@icarus:~ # dsfjjdskdfs dsfjjdskdfs: Command not found. root@icarus:~ # logout This only happens when an invalid command is issued (e.g. had I used "ls" instead of "blah" the prompt would not have changed). $prompt is the standard /root/.cshrc (r244005) value: set prompt = "%N@%m:%~ %# " I cannot reproduce this problem on Debian 6.0.1 with tcsh 6.17.02: $ ssh jdc@192.168.1.161 Linux debian 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 Last login: Tue Feb 3 19:22:19 2013 from icarus.home.lan jdc@debian:~$ sudo -i root@debian:~# /bin/tcsh debian:~# set prompt = "%N@%m:%~ %# " root@debian:~ # sdfsdf sdfsdf: Command not found. root@debian:~ # cd ~jdc root@debian:~jdc # sdfssgsgjsj sdfssgsgjsj: Command not found. root@debian:~jdc # exit root@debian:~# logout The number of changes between 6.17.02 and 6.18.01 seem quite large (looking at src/contrib/tcsh/Fixes). Does anyone have a non-FreeBSD system with tcsh 6.18.01 available to determine if this is a FreeBSD-centric issue or an actual issue with tcsh that needs to be reported upstream? Thanks. -- | Jeremy Chadwick jdc@koitsu.org | | UNIX Systems Administrator http://jdc.koitsu.org/ | | Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |