Bug 546644

Summary: tcsh obeys printexitvalue for back-ticks
Product: [Fedora] Fedora Reporter: Jeff Bastian <jbastian>
Component: tcshAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 12CC: vcrhonek
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 6.17-5.fc12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 531957 Environment:
Last Closed: 2010-02-02 01:15:48 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:
Attachments:
Description Flags
patch to fix backquoted output none

Description Jeff Bastian 2009-12-11 15:19:48 UTC
+++ This bug was initially created as a clone of Bug #531957 +++

Description of problem:
If printexitvalue is set, tcsh returns the exit code as part of the command output, rendering the output unusable.

Version-Release number of selected component (if applicable):
tcsh-6.17-4.fc12

How reproducible:
every time

Steps to Reproduce:
1. set printexitvalue
2. set i = `grep "nonono" /etc/csh.cshrc | wc -l`
3. echo $i
  
Actual results:
0 Exit 1

Expected results:
0

Additional info:
The patch has been accepted upstream:
  http://mx.gw.com/pipermail/tcsh-bugs/2009-October/000648.html
  http://mx.gw.com/pipermail/tcsh-bugs/2009-October/000649.html

Comment 1 Jeff Bastian 2009-12-11 16:02:27 UTC
Created attachment 377753 [details]
patch to fix backquoted output

Comment 2 Fedora Update System 2010-01-21 16:48:00 UTC
tcsh-6.17-5.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/tcsh-6.17-5.fc12

Comment 3 Fedora Update System 2010-01-22 22:33:39 UTC
tcsh-6.17-5.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update tcsh'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0901

Comment 4 Fedora Update System 2010-02-02 01:15:43 UTC
tcsh-6.17-5.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.