Re:Show HN: Bash-Tiasft – There is a shortcut for that!
by glumia on Monday September 14, 2020 @02:35AM
(#24467428)
Thanks!
Yeah sorry, I used an instruction (last array element access with the a [-1] syntax) that was added on bash version >= 4.1 and macOS uses by default 3.2. What you described is exactly what happened when you tried to execute the `search_alias` function on the macOS terminal.
Anyway, I just fixed it, check latest release :)
`-bash: [-1]: bad array subscript`
but cool idea!