Bug 70668 - colorls.sh backgrounds egrep command with pdksh
Summary: colorls.sh backgrounds egrep command with pdksh
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Public Beta
Classification: Retired
Component: fileutils   
(Show other bugs)
Version: limbo
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: wdovlrrw
QA Contact: Mike McLean
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-08-03 16:10 UTC by Todd Allen
Modified: 2007-04-18 16:45 UTC (History)
0 users

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: ---


Attachments (Terms of Use)

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.


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