Commands with backslashes are making troubles
Bug #1090289 reported by
Removed by request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libnih |
New
|
Undecided
|
Unassigned | ||
upstart |
Confirmed
|
Medium
|
James Hunt | ||
upstart (Ubuntu) |
Confirmed
|
Medium
|
James Hunt |
Bug Description
I'm using Ubuntu 13.04 dev with upstart 1.6.1-1ubuntu1. For example an upstart script with this command isn't executed correctly:
exec find / ! -size 0 -regex '.*\.sqlite3?$' -type f -exec sqlite3 {} VACUUM \;
Copying the line into a terminal is working fine. A workaround to get this command working with upstart is to use the script tags around the command.
To post a comment you must log in.
Thanks for reporting. This looks like a subtle parsing issue.
A work-around is to put the entire command within a script stanza like this:
script
exec find / ! -size 0 -regex '.*\.sqlite3?$' -type f -exec sqlite3 {} VACUUM \;
end script