Bug 70668

Summary: colorls.sh backgrounds egrep command with pdksh
Product: [Retired] Red Hat Public Beta Reporter: Todd Allen <redhatbugzillaold>
Component: fileutilsAssignee: wdovlrrw <brosenkr>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: limbo   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-08-03 16:22:09 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:

Description Todd Allen 2002-08-03 16:10:07 UTC
Description of Problem:
As of the 7.3.93, the /etc/profile.d/colorls.sh script will malfunction during
every login if the user's shell is ksh instead of bash.  It backgrounds this
command:
   ! egrep -qi "^COLOR.*none" $COLORS

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

How Reproducible:
Every login with the ksh shell.

Steps to Reproduce:
1. Set your login shell to ksh
2. Login
3. 

Actual Results:
This output during login:
[1] 1281
[1] + Done                 ! egrep -qi "^COLOR.*none" $COLORS 

Expected Results:
No such output during login.

Additional Information:
	
I was able to make this behavior stop by changing /etc/profile.d/colorls.sh.
The line:
   if ! egrep -qi "^COLOR.*none" $COLORS &>/dev/null; then
becomes:
   if ! egrep -qi "^COLOR.*none" $COLORS >/dev/null 2>/dev/null; then

I assume that &> is some bash-specific syntax.  It just ends up backgrounding
the preceding command right there with ksh.

Comment 1 Todd Allen 2002-08-03 16:22:04 UTC
This is related to bug 70383.