From nobody@FreeBSD.org  Sat Apr 14 09:25:19 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 13D7237B43E
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 14 Apr 2001 09:25:19 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f3EGPJp71352;
	Sat, 14 Apr 2001 09:25:19 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200104141625.f3EGPJp71352@freefall.freebsd.org>
Date: Sat, 14 Apr 2001 09:25:19 -0700 (PDT)
From: fjoe@newst.net
To: freebsd-gnats-submit@FreeBSD.org
Subject: tcsh incorrectly handles 'postcmd'
X-Send-Pr-Version: www-1.0

>Number:         26573
>Category:       misc
>Synopsis:       tcsh incorrectly handles 'postcmd'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 14 09:30:01 PDT 2001
>Closed-Date:    Sun Jul 8 14:38:10 PDT 2001
>Last-Modified:  Sun Jul 08 14:39:00 PDT 2001
>Originator:     Max Khon
>Release:        4.3-BETA
>Organization:
Plesk, Inc.
>Environment:
FreeBSD lark 4.3-BETA FreeBSD 4.3-BETA #1: Thu Apr 12 00:12:49 NOVST 2001     fjoe@lark:/usr/obj/usr/src/sys/alf  i386

>Description:
there are two problems with postcmd
(in both examples postcmd is defined as 'echo -n "^[]2;!#^G"')
1) if FOO is undefined the following error occurs:
lark:~$echo $FOO
FOO: Undefined variable.
Faulty alias 'postcmd' removed.
FOO: Undefined variable.
lark:~$
2) if directory contains only one file and ls is aliased somehow
('alias ls ls' is sufficient) then empty line is printed instead of
file list when doing ls in that directory:

lark:~/foo$alias
postcmd echo -n "^[]2;!#^G"
lark:~/foo$ls
patch-aa
lark:~/foo$alias ls ls
lark:~/foo$alias
ls      ls
postcmd echo -n "^[]2;!#^G"
lark:~/foo$ls

lark:~/foo$

>How-To-Repeat:

>Fix:
none
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: kris 
State-Changed-When: Sun Jul 8 14:38:10 PDT 2001 
State-Changed-Why:  
tcsh is not maintained by the FreeBSD developers.  Please 
address your bug report to the tcsh maintainer, Christos 
Zoulas <christos@zoulas.com>.  Thankyou. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26573 
>Unformatted:
