Skip to main content
8 events
when toggle format what by license comment
Feb 3 at 18:02 history edited ilkkachu CC BY-SA 4.0
added 101 characters in body
Jan 22, 2024 at 18:17 comment added ilkkachu @ValerioBozz, yes, you can use eval to do similar things to namerefs, it's just more work and more error-prone. But it does have the advantage it works in a standard shell, not just Bash. But, Bash 4.3 is from 2014-02-26, real close to being 10 years old by now, so I don't really see much use in backporting features to older versions. (Plus Bash is also pretty simple to compile on your own if you can't get a newer version otherwise.)
Jan 22, 2024 at 17:30 comment added V. Bozz Maybe relevant: stackoverflow.com/questions/50301116/…
Jan 22, 2024 at 17:12 comment added ilkkachu @ValerioBozz, typeset and declare have been in Bash since at least 3.2, but namerefs in general are only from Bash 4.3 (and sadly, wiki.bash-hackers.org has gone down).
Jan 22, 2024 at 17:08 comment added V. Bozz @G-ManSays'ReinstateMonica' still relevant? the answer now uses "typeset"
Dec 24, 2017 at 20:59 history edited ilkkachu CC BY-SA 3.0
added 147 characters in body
Dec 24, 2017 at 16:10 comment added G-Man Says 'Reinstate Monica' This works only  in bash version ≥ 4.3.
Dec 24, 2017 at 13:47 history answered ilkkachu CC BY-SA 3.0