Bug 70668 - colorls.sh backgrounds egrep command with pdksh
colorls.sh backgrounds egrep command with pdksh
Status: CLOSED RAWHIDE
Product: Red Hat Public Beta
Classification: Retired
Component: fileutils (Show other bugs)
limbo
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: wdovlrrw
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2002-08-03 12:10 EDT by Todd Allen
Modified: 2007-04-18 12:45 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2002-08-03 12:22:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Todd Allen 2002-08-03 12:10:07 EDT
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 12:22:04 EDT
This is related to bug 70383.

Note You need to log in before you can comment on or make changes to this bug.