RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2063018 - sourcing which2.sh from a ksh causes error
Summary: sourcing which2.sh from a ksh causes error
Keywords:
Status: CLOSED DUPLICATE of bug 2009547
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: which
Version: 8.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Than Ngo
QA Contact: CS System Management SST QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-11 06:59 UTC by Daniel Reynolds
Modified: 2022-03-30 00:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Red Hat Enterprise Linux release 8.5 (Ootpa) which-2.21-16.el8.x86_64
Last Closed: 2022-03-28 11:03:26 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-115294 0 None None None 2022-03-11 07:07:22 UTC

Description Daniel Reynolds 2022-03-11 06:59:11 UTC
Description of problem:

When sourcing /etc/kshrc from a non interactive ksh shell an error is produced from /etc/profile.d/which2.sh .

This does not occur for which-2.21-12.el8.x86_64 .

Version-Release number of selected component (if applicable): which-2.21-16.el8.x86_64


How reproducible: always


Steps to Reproduce:
1. Create test script test.ksh

    #!/bin/ksh
    . /etc/kshrc

2. Run ./test.ksh

Actual results:

    ./test.ksh
    ./test.ksh[6]: .[17]: .[19]: export: -f: unknown option
    Usage: export [-p] [name[=value]...]

Expected results:

    ./test.ksh

Comment 2 Than Ngo 2022-03-28 11:03:26 UTC
it ist fixed in which-2.21-17

Comment 3 Daniel Reynolds 2022-03-29 02:34:06 UTC
I have tried to upgrade to which-2.21-17.  This package does not appear to be available yet.  Can you confirm when it will be released?

Comment 5 Than Ngo 2022-03-29 07:42:04 UTC

*** This bug has been marked as a duplicate of bug 2009547 ***

Comment 6 Daniel Reynolds 2022-03-30 00:21:14 UTC
Do not believe this is a duplicate of bug 2009547 (https://bugzilla.redhat.com/show_bug.cgi?id=2009547).

Spoke to Donald, he agrees.


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