curl output to use single quotes for password
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020
03:07 AM
02-24-2020
03:07 AM
curl output to use single quotes for password
Our system uses
java -jar /home/dev/swagger-codegen-cli-2.2.1.jar ... -i /home/....xxx.yaml
to generate (inter alia) the doc page:
Is there some way to get it to output
'USERNAME:PASSWORD'
instead (ie with simple rather than double quotes) ?
Many thanks.
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-24-2020
07:36 AM
02-24-2020
07:36 AM
Is there a specific reason you want single quotes? Double quotes are better because such commands work in both Windows and *nix/bash. Single quotes only work in *nix/bash but not in Windows.
Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2020
01:35 AM
02-25-2020
01:35 AM
To prevent BASH processing $xxx as a variable.
But thanks for that, am going to pass it up the management chain.
