From nobody@FreeBSD.ORG Fri Jul 14 16:18:01 2000 Return-Path: Received: by hub.freebsd.org (Postfix, from userid 32767) id 5791337BFDB; Fri, 14 Jul 2000 16:18:01 -0700 (PDT) Message-Id: <20000714231801.5791337BFDB@hub.freebsd.org> Date: Fri, 14 Jul 2000 16:18:01 -0700 (PDT) From: jamesn@airmail.net Sender: nobody@FreeBSD.ORG To: freebsd-gnats-submit@FreeBSD.org Subject: tcsh is not completly compabable with csh. X-Send-Pr-Version: www-1.0 >Number: 19937 >Category: bin >Synopsis: tcsh is not completly compabable with csh. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 14 16:20:00 PDT 2000 >Closed-Date: Mon Jul 17 10:15:14 PDT 2000 >Last-Modified: Mon Jul 17 10:18:21 PDT 2000 >Originator: James Nuckolls >Release: 4.0-STABLE >Organization: >Environment: FreeBSD jamesnbsd.iadfw.net 4.0-STABLE FreeBSD 4.0-STABLE #5: Fri Jul 14 15:34:14 CDT 2000 root@jamesnbsd.iadfw.net:/usr/src/sys/compile/JAMESNBSD i386 >Description: Even though the tcsh man page stats that "tcsh is an enhanced but completely compatable version of the Berkley UNIX C Shell, csh(1)," there are a few important differences. In a previous pr, I stated that prompt now treats control charcters differently. Upon analisys of the tcsh man page, I didn't find the root cause: the "command-line editor" This feature is turned on by setting envitonment variable edit. Unsetting this variable causes prompts with control charcters to work correctly. (FWIW, I don't consider unsetting the edit variable to be THE fix for this issue. It needs to be addressed via other means) Historically, setting the shell variable filec turns on file name completion. In tcsh this is not the case, it's turned on by the edit variable. Unsetting edit, with filec set disables filename completion. Of course, setting the edit variable again causes filename completion to work in the manner one would expect (well.. in the manner that tcsh does filename completion -- it's not exactilly like csh, but it's close enough for goverment work). There is, however one issue in file name completion that also should to be addressed. In csh, the completion charcter is (be default) the escape key (^[). Of course it's in tcsh. Tcsh does seem to support the use of the escape key as the completion charcter, but there is one large difference: the user must press escape twice before the shell attempts to complete the command. There are of course, many more incompatabilities, most of which are rather minor but annoying in any case, but they all seem to relate to the command-line editor in one mannor or another. The two above are the two I spotted litterily in less than 1 minute of use. >How-To-Repeat: set edit, then unset edit and note the differences. >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open->closed State-Changed-By: sheldonh State-Changed-When: Mon Jul 17 10:15:14 PDT 2000 State-Changed-Why: Both the manual page and src/contrib/tcsh/README urge you to send in your bug reports, flames, enhancement requests. Two different addresses are provided. I'll let you decide which is more appropriate. But we're dead keen on making as few local changes as possible. http://www.freebsd.org/cgi/query-pr.cgi?pr=19937 >Unformatted: