cancel
Showing results for 
Search instead for 
Did you mean: 

curl output to use single quotes for password

SOLVED
Highlighted
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
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
Highlighted
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 Technical Writer
________________________

 Join the virtual SmartBear Connect user conference on April 27-28! Get your free virtual ticket today!
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