Bulk change: move double quotes outside tokens (#4431)

This commit is contained in:
Guido Lena Cota
2020-10-04 19:33:38 +02:00
committed by GitHub
parent cfe462c57f
commit 354d4b8748
59 changed files with 118 additions and 118 deletions

View File

@@ -4,19 +4,19 @@
- Print a text message:
`printf {{"%s\n"}} {{"Hello world"}}`
`printf "{{%s\n}}" "{{Hello world}}"`
- Print an integer in bold blue:
`printf {{"\e[1;34m%.3d\e[0m\n"}} {{42}}`
`printf "{{\e[1;34m%.3d\e[0m\n}}" {{42}}`
- Print a float number with the unicode Euro sign:
`printf {{"\u20AC %.2f\n"}} {{123.4}}`
`printf "{{\u20AC %.2f\n}}" {{123.4}}`
- Print a text message composed with environment variables:
`printf {{"var1: %s\tvar2: %s\n"}} {{"$VAR1"}} {{"$VAR2"}}`
`printf "{{var1: %s\tvar2: %s\n}}" "{{$VAR1}}" "{{$VAR2}}"`
- Store a formatted message in a variable (does not work on zsh):