dsanson / termpdf

barebones graphical pdf/djvu/cbr/image viewer that works inside iTerm2 2.9+ and Kitty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

declare -A: invalid option

kenetik opened this issue · comments

$ ~/Development/termpdf/termpdf BeginningPerl.pdf
/Users/davidlevey/Development/termpdf/termpdf: line 33: declare: -A: invalid option 
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
/Users/davidlevey/Development/termpdf/termpdf: line 1117: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
       mktemp [-d] [-q] [-u] -t prefix

This appears to be a feature introduced in Bash 4. I have bash 3 in El Capitan. FYI !

Should be fixed: you still need Bash 4 if you want to use marks, but if you are using bash 3.x, it won't break. If you want Bash 4, it is easy to install with homebrew: brew install bash.