helixarch / subedit

Command-line subtitle editor written in BASH
GNU General Public License v2.0
92 stars 10 forks source link

syntax error (macOS) #11

Open siikii opened 4 years ago

siikii commented 4 years ago

When I try to shift time of a srt file there is an error message: subedit: line 2225: syntax error near unexpected token &' subedit: line 2225: "s") justtext=""$justtext; arraysubs[$j]=$justtext; suffix+="" ;;&' What I should do to fix this? (dos2unix installed.)

nehaljwani commented 3 years ago

You need to use a more recent version of bash (4.1+). I ended up doing the following:

brew install bash
/usr/local/bin/bash /path/to/subedit -h
rvvincelli commented 3 years ago

Thanks guys!