Bug 529425

Summary: latest tcsh update causes serious glob'ing problem
Product: Red Hat Enterprise Linux 5 Reporter: leblanc
Component: tcshAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.4CC: aleksey, amk, arif, dae1, dneu, goeran, k.georgiou, leblanc, micro420, mmatsuya, ofourdan, olle, ovasik, psplicha, robh, tao, wstearns
Target Milestone: rcKeywords: Regression, ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-30 07:58:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 547529    

Description leblanc 2009-10-16 18:58:40 UTC
Description of problem:
The latest tcsh update (tcsh-6.14-14.el5_4.2.x86_64, I installed it on Oct 14) has introduced a serious file globbing problem.


Version-Release number of selected component (if applicable):
tcsh-6.14-14.el5_4.2.x86_64


How reproducible:
Every time

Steps to Reproduce:
0. /bin/rm -rf /tmp/testdir
1. mkdir /tmp/testdir
2. cd /tmp/testdir
3. touch file
4. echo "hello" *
  
Actual results:
\hl\l\o file

Expected results:
hello file

Additional info:
I get the same error on an i386 machine.  It seems that each character in the double quotes in the argument to the "echo" command is having a backslash prepended to it.  This is messing up many commands, including "egrep".

Comment 1 Rob Henderson 2009-10-24 14:53:58 UTC
We're seeing the same behavior.  It is interesting that the transformation of the quoted string is character specific and some get turned into control characters.  For example

   echo "a" *

turns the "a" into "^G".  Using "b" turns into "^H", and using "c" results in no output at all.  Obviously, this causes lots of interesting behavior for tcsh/csh users.

Comment 2 leblanc 2009-10-24 15:53:15 UTC
It looks like the previous "fix" to tcsh tried to do something with the "buildkey" tcsh builtin command.

Here's an exerpt from "man tcsh":

Control characters in key can be literal (they can be typed by preceding them with the editor command quoted-insert, normally bound to ‘^V’) or written caret-character style,  e.g.,  ‘^A’.  Delete is written ‘^?’  (caret-question mark).  key and command can contain backslashed escape sequences (in the style of System V echo(1)) as follows:

           \a      Bell
           \b      Backspace
           \e      Escape
           \f      Form feed
           \n      Newline
           \r      Carriage return
           \t      Horizontal tab
           \v      Vertical tab
           \nnn    The ASCII character corresponding to the octal number nnn

Comment 5 micro420 2009-10-27 16:01:42 UTC
Globbing got messed up right after the RHBA-2009:1494-1 patch on Oct. 13th.  For example:

echo a \;  # Works
echo a* \; # Fails
echo \;    # Works
find .??* -exec grep syn {} \; -ls  # Fails

Comment 9 Vitezslav Crhonek 2009-11-16 11:09:35 UTC
*** Bug 537127 has been marked as a duplicate of this bug. ***

Comment 10 Vitezslav Crhonek 2009-11-18 15:38:07 UTC
*** Bug 538431 has been marked as a duplicate of this bug. ***

Comment 11 Vitezslav Crhonek 2009-11-19 14:53:43 UTC
*** Bug 538837 has been marked as a duplicate of this bug. ***

Comment 21 Vitezslav Crhonek 2010-01-14 11:16:03 UTC
*** Bug 552985 has been marked as a duplicate of this bug. ***

Comment 25 errata-xmlrpc 2010-03-30 07:58:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0190.html