Menu

#6 Unterminated quoted string found, EOF reached.

open
nobody
None
5
2014-03-28
2014-03-28
Morten
No

A script I wrote uses this syntax to wrap certain commands in sudo:
eval "$cmd() { sudo $cmd "'"$@"'"; }"

This gives checkbashims the heebie jeebies:
error: nobashism: Unterminated quoted string found, EOF reached. Wanted: <'>

Attaching a nonsense example script that gives this message.

1 Attachments

Discussion


Log in to post a comment.