Forum Discussion

peterk's avatar
peterk
Occasional Contributor
5 years ago

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.

 


  • To  prevent BASH processing $xxx as a variable.

     

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

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    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.

    • peterk's avatar
      peterk
      Occasional Contributor


      To  prevent BASH processing $xxx as a variable.

       

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