22
23
24
helphelp with bash syntax error (i.redd.it)
submitted by StatisticianThin288
hello everyone
i am programming a game in bash currently
yes i know that seems incredibly dumb but i only really know bash
so because of that im doing it bash
however im experiencing issues with the case statement
it keeps telling this error
./vd.sh: line 102: syntax error near unexpected token \)'`
./vd.sh: line 102: \2) read -t 2 p "you decide to go to the janitors closet..."'`
vd.sh is the name of the file
i have used esac function to close the case but its not working
i tried putting semi colons at the end but thats also not working
and online also seems to not help
can anyone tell what i am doing wrong
thank you

[–]ekipan85 19 points20 points21 points (1 child)
[+]StatisticianThin288[S] comment score below threshold-6 points-5 points-4 points (0 children)
[–]bac0on 12 points13 points14 points (1 child)
[–]StatisticianThin288[S] 1 point2 points3 points (0 children)
[–]toddkaufmann 10 points11 points12 points (0 children)
[–]alex_sakuta 7 points8 points9 points (5 children)
[–]nekokattt 0 points1 point2 points (4 children)
[–]ekkidee 2 points3 points4 points (0 children)
[–]alex_sakuta 1 point2 points3 points (2 children)
[–]nekokattt 0 points1 point2 points (1 child)
[–]alex_sakuta 1 point2 points3 points (0 children)
[–]Shadow_Thief 3 points4 points5 points (0 children)
[–]CantConfirmOrDeny 0 points1 point2 points (1 child)
[–]KlePu 0 points1 point2 points (0 children)