From owner-freebsd-bugs Sat Apr 14 9:30: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A81F137B50D for ; Sat, 14 Apr 2001 09:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3EGU1671653; Sat, 14 Apr 2001 09:30:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 13D7237B43E for ; 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 X-Send-Pr-Version: www-1.0 Subject: misc/26573: tcsh incorrectly handles 'postcmd' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26573 >Category: misc >Synopsis: tcsh incorrectly handles 'postcmd' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Apr 14 09:30:01 PDT 2001 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message