From owner-freebsd-stable@FreeBSD.ORG Thu Feb 7 08:18:12 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 7A18EA99 for ; Thu, 7 Feb 2013 08:18:12 +0000 (UTC) (envelope-from mcg@sulfegate.org) Received: from mail-ie0-x22c.google.com (ie-in-x022c.1e100.net [IPv6:2607:f8b0:4001:c03::22c]) by mx1.freebsd.org (Postfix) with ESMTP id 1B8CA817 for ; Thu, 7 Feb 2013 08:18:11 +0000 (UTC) Received: by mail-ie0-f172.google.com with SMTP id c10so3163755ieb.3 for ; Thu, 07 Feb 2013 00:18:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sulfegate.org; s=google; h=x-received:mime-version:sender:x-originating-ip:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type; bh=R65506cVZHBAY1UaZ8Zm8HqRIFpzzr54xcOPAyHp4/U=; b=Ei5Co4CBT+QxqWVRheyuAwi1kiLUMnaqx4XzeyWwBH7L1h9wlj19f65PZfntp3pUP9 PFeNv8HB5w9T+Kz4C3rEgOxU19VLQ9okaNVxUgD1W2EiSH6jhXXKnzVYq1r0U4e/z3wN IiHeRjGRTX09QcznsdLlQJkUdkBvOA7VLJ/os= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:sender:x-originating-ip:in-reply-to :references:from:date:x-google-sender-auth:message-id:subject:to:cc :content-type:x-gm-message-state; bh=R65506cVZHBAY1UaZ8Zm8HqRIFpzzr54xcOPAyHp4/U=; b=eoIUETmy/H2ezg6NeR+m67KDawRgawJ7I24qP6PIRMl7mDI8lL12+Tj9jY2l/KgZBx 4FjDNIYHRwsByJKu0DsR5OjkLoAhU4KHUFiZI2fOoIUAD+5z+q1gOK351aJg8m3kvvyp URifllZOtwON2h2Kh/fDadYmMDrfhPHfPtx9h8S/tPSbocVT75JVe5WI8Na+kEG5vauQ PWCGo8kRt6tT/j3lGLcMgHXYYsdU/DxDJaU6ck994UPmNsZdszZL3mCMjSJX2BU/TFan O5paJ6MoHJAYN9B5V0DGV7l4M4oSCM8gxlrEp+NHJnlAhXkNOCGRwb8hz18fBoLPd8m4 3DvQ== X-Received: by 10.42.98.76 with SMTP id r12mr802450icn.10.1360225091498; Thu, 07 Feb 2013 00:18:11 -0800 (PST) MIME-Version: 1.0 Sender: mcg@sulfegate.org Received: by 10.50.158.161 with HTTP; Thu, 7 Feb 2013 00:17:41 -0800 (PST) X-Originating-IP: [2001:470:1f05:6c6::100] In-Reply-To: <20130206062520.GA79498@icarus.home.lan> References: <20130206011007.GA72256@icarus.home.lan> <20130206062520.GA79498@icarus.home.lan> From: "Galati, Michael" Date: Thu, 7 Feb 2013 00:17:41 -0800 X-Google-Sender-Auth: KvwRv_GWuoflQFDp7wzkEwq5UFU Message-ID: Subject: Re: csh/tcsh: odd %~ prompt variable behaviour To: Jeremy Chadwick X-Gm-Message-State: ALoCoQnnIqWa2M9bA5ZIHhwRPC0xYRq9Dl6vsjfsoIcl0pxh7l4LBEXwMzzIUuGEGTjDR32XNgiW Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-stable@freebsd.org 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: Thu, 07 Feb 2013 08:18:12 -0000 Sorry, I meant to include that with my previous mail. echo $version tcsh 6.18.01 (Astron) 2012-02-14 (x86_64-unknown-linux) options wide,nls,dl,al,kan,rh,nd,color,filec Let me know if you need any more info. On Tue, Feb 5, 2013 at 10:25 PM, Jeremy Chadwick wrote: > Michael, > > Thank you very much! What tcsh version is that? "echo $version" should > say. :-) > > -- > | 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 | > > On Tue, Feb 05, 2013 at 10:05:44PM -0800, Galati, Michael wrote: > > Looks like it could be FreeBSD specific... I very rarely use {,t}csh > > myself. > > > > user@host:~$ uname -a > > Linux host 3.5.0-23-generic #35-Ubuntu SMP Thu Jan 24 13:15:40 UTC 2013 > > x86_64 x86_64 x86_64 GNU/Linux > > user@host:~$ sudo -i > > [sudo] password for user: > > root@host:~# tcsh > > host:~# set prompt = "%N@%m:%~ %# " > > root@host:~ # asdfasdf > > asdfasdf: Command not found. > > root@host:~ # cd ~user > > root@host:~user # asdfasdf > > asdfasdf: Command not found. > > root@host:~user # exit > > root@host:~# logout > > > > > > > > On Tue, Feb 5, 2013 at 5:10 PM, Jeremy Chadwick wrote: > > > > > (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 | > > > > > > _______________________________________________ > > > freebsd-stable@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > > To unsubscribe, send any mail to " > freebsd-stable-unsubscribe@freebsd.org" > > > >