Bug 70668 - colorls.sh backgrounds egrep command with pdksh
colorls.sh backgrounds egrep command with pdksh
Product: Red Hat Public Beta
Classification: Retired
Component: fileutils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: wdovlrrw
Mike McLean
Depends On:
  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:
Last Closed: 2002-08-03 12:22:09 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
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
   ! egrep -qi "^COLOR.*none" $COLORS

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

How Reproducible:
Every login with the ksh shell.

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

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