News for hackers. Stuff that matters.
Re:Show HN: Bash-Tiasft – There is a shortcut for that! by summitsummit on Sunday September 13, 2020 @09:31PM (#24465757)
i just get this on loop when i start my shell now

`-bash: [-1]: bad array subscript`

but cool idea!

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 :)