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 <[email protected]> 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 <[email protected]> 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: | 741 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 97:22:34 |
| Calls: | 12,458 |
| Calls today: | 8 |
| Files: | 15,197 |
| Messages: | 6,537,945 |