Bug 487419

Summary: non-portable redirect (&>) used in /etc/profile causes spurious ksh login output
Product: [Fedora] Fedora Reporter: Jim Helm <perlguy>
Component: setupAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 10CC: mhlavink, ovasik, pknirsch
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.6.18-3.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-26 15:34:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jim Helm 2009-02-25 21:27:35 UTC
Description of problem:

"&>" construct used by bash is not portable to ksh.  Login shells under ksh output one "[n]  <pid>" line per file under /etc/profile.d.  Files are still sourced, but it makes ksh logins ugly and causes confusion about where the background jobs are coming from.

Simple fix is just to use the longer and more portable ">/dev/null 2>&1" construct instead.

Version-Release number of selected component (if applicable):


How reproducible:

install ksh and use as login shell.

Steps to Reproduce:
1.
2.
3.
  
Actual results:



Expected results:


Additional info:

Comment 1 Jim Helm 2009-02-25 21:31:53 UTC
I meant to add... it's not really a bug with ksh, but the "setup" package that profiles the file isn't listed in the component dropdown.

Comment 2 Michal Hlavinka 2009-02-26 10:49:10 UTC
I can confirm, this is reproducible for me, but since this is not a 'ksh' bug, changing component to 'setup'

Comment 3 Ondrej Vasik 2009-02-26 12:11:13 UTC
Thanks for report, fixed in Rawhide, setup-2.8.1-1.fc11.

Comment 4 Fedora Update System 2009-02-26 12:22:27 UTC
setup-2.7.4-4.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/setup-2.7.4-4.fc10

Comment 5 Fedora Update System 2009-02-26 12:38:03 UTC
setup-2.6.18-3.fc9 has been submitted as an update for Fedora 9.
http://admin.fedoraproject.org/updates/setup-2.6.18-3.fc9

Comment 6 Fedora Update System 2009-02-26 15:34:06 UTC
setup-2.7.4-4.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2009-02-28 03:29:35 UTC
setup-2.6.18-3.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.