rocketraman / sane-scan-pdf

Sane command-line scan-to-pdf script on Linux with OCR and deskew support
MIT License
141 stars 28 forks source link

Quote the device argument #21

Closed p closed 3 years ago

p commented 3 years ago

Without doing so if the device includes a semicolon the following happens:

% ./scan -x 'brother4:bus7;dev1'
Scanning...
scanadf: open of device brother4:bus7 failed: Invalid argument
./scan: line 248: dev1: command not found
Found no scans.
rocketraman commented 3 years ago

Thank you!