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: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 60:38:44 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,094 |
Messages: | 5,274,354 |