Bug 1392951 - Indexing an Array in Bash is not working as expected
Summary: Indexing an Array in Bash is not working as expected
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: bash
Version: 6.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Siteshwar Vashisht
QA Contact: BaseOS QE - Apps
URL:
Whiteboard:
Depends On:
Blocks: 1460926
TreeView+ depends on / blocked
 
Reported: 2016-11-08 14:18 UTC by Dimitar Yordanov
Modified: 2017-06-13 07:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1460926 (view as bug list)
Environment:
Last Closed: 2017-06-13 07:39:44 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Dimitar Yordanov 2016-11-08 14:18:23 UTC
Description of problem:
Indexing an Array in Bash is not working as expected

Version-Release number of selected component (if applicable):
bash-4.1.2-40.el6.x86_64

How reproducible:
Always

Steps to Reproduce:
# r=(a b); 
# echo ${r[0]}
a
# echo ${r[1]}
b
# echo ${r[abc]}
a
# echo ${r[---abc]}
b
# echo ${r[---abc]}

#


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