Ask a Question

curl output to use single quotes for password

SOLVED
peterk
Occasional Contributor

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:
swaggger1.png

Is there some way to get it to output

'USERNAME:PASSWORD'

instead  (ie with simple rather than double quotes) ?

Many thanks.

 

1 ACCEPTED SOLUTION

Accepted Solutions
peterk
Occasional Contributor

Re: curl output to use single quotes for password


To  prevent BASH processing $xxx as a variable.

 

But thanks for that, am going to pass it up the management chain.

View solution in original post

2 REPLIES 2
HKosova
Moderator

Re: curl output to use single quotes for password

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. ⬇️⬇️⬇️
peterk
Occasional Contributor

Re: curl output to use single quotes for password


To  prevent BASH processing $xxx as a variable.

 

But thanks for that, am going to pass it up the management chain.

View solution in original post

cancel
Showing results for 
Search instead for 
Did you mean: