AROS World Exec

Development => Development (General) => Topic started by: damir on September 25, 2022, 06:22:09 AM

Title: Escape double quotes in ADOS?
Post by: damir on September 25, 2022, 06:22:09 AM
In AmigaDOS, how do I escape double quotes?

For example if I want to write JSON:
Code: [Select]
echo "{"hello":"world"}"
I get:
Code: [Select]
{ hello":"world"}"
Or more specific I need to send something like this in curl:

Code: [Select]
curl -d '{"email":"yyy@yyy.com","password":"44444444"}' -H 'Content-Type: application/json' https://target/login
Title: Re: Escape double quotes in ADOS?
Post by: o1i on September 25, 2022, 08:58:02 AM
In AmigaDOS, how do I escape double quotes?

For example if I want to write JSON:
Code: [Select]
echo "{"hello":"world"}"
I get:
Code: [Select]
{ hello":"world"}"
Or more specific I need to send something like this in curl:

Code: [Select]
curl -d '{"email":"yyy@yyy.com","password":"44444444"}' -H 'Content-Type: application/json' https://target/login

Try *" to escape "

Looks strange, but afair it was sth like that.
Title: Re: Escape double quotes in ADOS?
Post by: damir on September 25, 2022, 09:41:38 AM
Thanks!