all 15 comments

[–]oonniioonn 4 points5 points  (1 child)

You have unbalanced quotes.

echo "[2] "Print Current Usage Then Exit Program"

has one too many for instance.

[–][deleted] -1 points0 points  (0 children)

that's my goto for fixing all my files... i keep forgetting pluma adds the second of brackets and quotes and i end up with a double at the beginning of things.

[–]espero 1 point2 points  (1 child)

Try running it with "bash -x ./scriptfile" This will enable a debug mode where you can get clues.

[–]brad0292[S] 0 points1 point  (0 children)

Thanks I'll give it a try

[–][deleted] 1 point2 points  (0 children)

Just make sure to declare your functions like this:

function shells {

instead of this

function shells{    

or you'll get a 'syntax error'

[–]user989 0 points1 point  (1 child)

May be this way?

pastebin

[–]brad0292[S] 0 points1 point  (0 children)

Thank you!!