Do you see why this command is unterminated?
$ convert -draw 'text 2,120 "Where: x\'s"'
I'm trying to build a string for a command and run it from python.
I can't run it from the shell. :-(
Do you see why this command is unterminated?
$ convert -draw 'text 2,120 "Where: x\'s"'
I'm trying to build a string for a command and run it from python.
I can't run it from the shell. :-(
Do you see why this command is unterminated?
$ convert -draw 'text 2,120 "Where: x\'s"'
I'm trying to build a string for a command and run it from python.
I can't run it from the shell. :-(
On 2021-08-17, Kenny McCormack <gazelle@shell.xmission.com> wrote:
To embed a single quoted inside a single-quoted string in a POSIX-ish
shell, you need to replace each occurrence of ' with the 5 character
sequence: '"'"'
This one is shorter: '\''
To embed a single quoted inside a single-quoted string in a POSIX-ish
shell, you need to replace each occurrence of ' with the 5 character sequence: '"'"'
To embed a single quoted inside a single-quoted string in a POSIX-ish
shell, you need to replace each occurrence of ' with the 5 character
sequence: '"'"'
This one is shorter: '\''
... but does not work in a POSIX-ish shell like bash.
On 2021-08-17, Ben Bacarisse <ben.usenet@bsb.me.uk> wrote:
To embed a single quoted inside a single-quoted string in a POSIX-ish
shell, you need to replace each occurrence of ' with the 5 character
sequence: '"'"'
This one is shorter: '\''
... but does not work in a POSIX-ish shell like bash.
Of course it does.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 422 |
Nodes: | 16 (3 / 13) |
Uptime: | 196:31:25 |
Calls: | 8,951 |
Calls today: | 2 |
Files: | 13,352 |
Messages: | 5,992,474 |