https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44244 Bug ID: 44244 Summary: koha-shell -c breaks on single quotes in the command, sometimes silently Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Command-line Utilities Assignee: koha-bugs@lists.koha-community.org Reporter: babarjunaid1122@gmail.com QA Contact: testopia@bugs.koha-community.org CC: jake.deery@openfifth.co.uk, robin@catalyst.net.nz Target Milestone: --- koha-shell builds one string, ... -c '<command>', and runs it through a shell. A single quote inside the command ends the wrapper's quoting: sudo koha-shell -c "echo 'Supplier load, August'" kohadev Supplier sudo koha-shell -c "perl -e 'print(1)'" kohadev sh: 1: Syntax error: "(" unexpected The first case is silent: with stage_file.pl, --comment 'Supplier load, August' arrives as --comment Supplier and the batch is staged with the wrong comment. Single quotes are the normal way to quote an argument, so anyone following a guide that wraps a command in koha-shell -c "..." can hit it. Reproduced on main (c8e8025) in KTD and on a Koha 26.05.05 package install. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.