*Synopsis*: first call to read doesn't honor new setting of HISTFILE
Due to a change requested by <User 1-1SURPB>,
<User 1-7MTUEB> is now the responsible engineer for:
CR 6705126 changed on Sep 18 2009 by <User 1-1SURPB>
=== Field ============ === New Value ============= === Old Value =============
Hook 5 <email address omitted> <email address omitted>
Responsible Engineer <User 1-7MTUEB> <User 1-1SURPB>
====================== =========================== ===========================
*Change Request ID*: 6705126
*Synopsis*: first call to read doesn't honor new setting of HISTFILE
Product: solaris
Category: shell
Subcategory: korn93
Type: Defect
Subtype: Other
Status: 6-Fix Understood
Substatus:
Priority: 4-Low
Introduced In Release: solaris_nevada
Introduced In Build: snv_72
Responsible Engineer: <User 1-7MTUEB>
Keywords: oss-request, oss-sponsor
=== *Description* ============================================================
|#!/bin/ksh93
|
|unset HISTFILE
|HISTFILE=/tmp/fooooo
|print HISTFILE=$HISTFILE
|
|set -o emacs
|print -n ":> "
|read -s
|print -n ":> "
The user will not see any history in the first prompt (assuming
/tmp/fooooo exists and is a hist file), but will on the second
invocation.
*** (#1 of 1): 2008-05-20 20:03:33 GMT+00:00 <User 1-5Q-10962>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
Call "read -s < /dev/null" immediately after setting HISTFILE.
*** (#1 of 1): 2008-05-20 20:03:33 GMT+00:00 <User 1-5Q-10962>
=== *Additional Details* =====================================================
Targeted Release: solaris_nevada
Commit To Fix In Build:
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also: 6793763
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5: <email address omitted>
Hook6: <email address omitted>
Program Management:
Root Cause: Inadequate Algorithm
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2008-05-20 20:03:32 GMT+00:00
Submitted By: <User 1-5Q-10962>
Status Changed Date Updated Updated By
4-Defer 2009-06-05 06:12:00 GMT+00:00 <User 1-5Q-8426>
3-Accepted 2009-06-05 16:07:50 GMT+00:00 <User 1-1SURPB>
6-Fix Understood 2009-06-16 14:52:45 GMT+00:00 <User 1-1SURPB>
=== *Service Request* ========================================================
Impact: Limited
Functionality: Nonessential
Severity: 5
Product Name: solaris
Product Release: solaris_nevada
Product Build:
Operating System: snv
Hardware: generic
Submitted Date: 2008-05-20 20:03:33 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================