Skip to main content

Timeline for Associative Arrays in Shell Scripts

Current License: CC BY-SA 3.0

14 events
when toggle format what by license comment
Mar 14, 2019 at 0:10 answer added JamesD timeline score: -1
Jan 6, 2017 at 3:50 answer added Marián Černý timeline score: 1
S Feb 2, 2016 at 13:05 history suggested dkb
removing duplicate tag array, since associative array is already included
Feb 2, 2016 at 12:34 review Suggested edits
S Feb 2, 2016 at 13:05
Jan 10, 2016 at 15:58 history edited jimmij CC BY-SA 3.0
deleted 8 characters in body; edited tags
Nov 19, 2014 at 22:50 comment added Martin von Wittich @Slav I'm not arguing against associative arrays, just against shell scripts where such complexity is needed. But that's just my personal preference; I often catch myself starting to write a shell script and then immediately rewriting it in Perl when I realize that I'm exceeding a certain complexity threshold.
Nov 19, 2014 at 14:16 comment added Slav @MartinvonWittich why? I have a shell script that executes a SQL script on one of 3 possible DB schemas. The required schema is included in filename with an abbreviation. I need a mapping between this abbreviation and the real schema name. What better way than an associative array, considering the actual schema names (not the abbreviation) may differ between environments, so an array variable (whose values can be set just once) is perfect
Jan 31, 2014 at 14:50 vote accept EggHead
Jan 29, 2014 at 0:48 history edited Gilles 'SO- stop being evil'
edited tags
Jan 29, 2014 at 0:48 answer added Gilles 'SO- stop being evil' timeline score: 23
Jan 29, 2014 at 0:09 comment added Martin von Wittich If you're trying to use associative arrays in a shell script it could be possible that your project is too complex for a shell script :)
Jan 28, 2014 at 22:58 answer added terdon timeline score: 4
Jan 28, 2014 at 22:46 history edited terdon CC BY-SA 3.0
Fixed formatting and removed the second question. Please don't use single posts for multiple questions, post each as a separate question instead.
Jan 28, 2014 at 22:35 history asked EggHead CC BY-SA 3.0