*Synopsis*: shlint missing ending newline on errors
CR 6809663 changed on Oct 23 2009 by <User 1-7MTUEB>
=== Field ============ === New Value ============= === Old Value =============
Commit to Fix in Build snv_127
See Also 6437624
Status 7-Fix in Progress 6-Fix Understood
====================== =========================== ===========================
*Change Request ID*: 6809663
*Synopsis*: shlint missing ending newline on errors
Product: solaris
Category: shell
Subcategory: korn93
Type: Defect
Subtype:
Status: 7-Fix in Progress
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* ============================================================
shlint doesn't print a final newline at the end of its output - since
my prompt resets to the beginning of the line, that makes the last line
appear to disappear - for others, it would just cause the prompt to appear
way over in the middle of the line, which is still annoying.
<email address omitted>:/export/dev/alanc [5:06pm - 371] cat foo.sh
#! /bin/ksh93
if foo ;
print "forgot then!"
fi
<email address omitted>:/export/dev/alanc [5:06pm - 372]
/usr/demo/ksh/bin/shlint foo.sh
<email address omitted>:/export/dev/alanc [5:06pm - 373]
/usr/demo/ksh/bin/shlint foo.sh ; echo
foo.sh: syntax error at line 5: `fi' unexpected
<email address omitted>:/export/dev/alanc [5:06pm - 374]
*** (#1 of 1): 2009-02-25 01:10:03 GMT+00:00 <User 1-5Q-1267>
*** Last Edit: 2009-02-25 01:13:59 GMT+00:00 <User 1-5Q-1267>
=== *Public Comments* ========================================================
=== *Workaround* =============================================================
Add an echo after shlint calls as shown in description.
*** (#1 of 1): 2009-02-25 01:10:03 GMT+00:00 <User 1-5Q-1267>
=== *Additional Details* =====================================================
Targeted Release: solaris_nevada
Commit To Fix In Build: snv_127
Fixed In Build:
Integrated In Build:
Verified In Build:
See Also: 6437624, 6793763
Duplicate of:
Hooks:
Hook1:
Hook2:
Hook3:
Hook4:
Hook5: <email address omitted>
Hook6: <email address omitted>
Program Management:
Root Cause: Logic Error
Fix Affects Documentation: No
Fix Affects Localization: No
=== *History* ================================================================
Date Submitted: 2009-02-25 01:10:02 GMT+00:00
Submitted By: <User 1-5Q-1267>
Status Changed Date Updated Updated By
6-Fix Understood 2009-06-17 12:25:01 GMT+00:00 <User 1-1SURPB>
7-Fix in Progress 2009-10-23 19:36:50 GMT+00:00 <User 1-7MTUEB>
=== *Service Request* ========================================================
Impact: Limited
Functionality: Primary
Severity: 3
Product Name: solaris
Product Release: solaris_nevada
Product Build:
Operating System: solaris
Hardware: generic
Submitted Date: 2009-02-25 01:10:03 GMT+00:00
=== *Multiple Release (MR) Cluster* - 0 ======================================