Bug 26573

Summary: tcsh incorrectly handles 'postcmd'
Product: Base System Reporter: fjoe <fjoe>
Component: miscAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description fjoe 2001-04-14 17:30:01 UTC
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$

Fix: 

none
Comment 1 Kris Kennaway freebsd_committer freebsd_triage 2001-07-08 22:38:10 UTC
State Changed
From-To: open->closed

tcsh is not maintained by the FreeBSD developers.  Please 
address your bug report to the tcsh maintainer, Christos 
Zoulas <christos@zoulas.com>.  Thankyou.