[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printf $variable inside initial parenthesis or use %s?
From: |
Roger |
Subject: |
Re: printf $variable inside initial parenthesis or use %s? |
Date: |
Wed, 11 Jan 2023 23:54:44 -0500 |
Shrugs... The idea (or more exactly, guess) was rendered after reading the
builtin printf documentation within the Bash manual, as well as searching
Google for any other relevant information.
So the bottom line on the simple versus %s format, the simple method is fine as
along the code/maintainer has explicit control over the contents of the
variable?
If the variable has possibility of outside/user modification of the variable,
then resort to the lengthier %s format usage?
Think most of us know the more secure method, and the simple method provides
easier reading.
Roger
signature.asc
Description: PGP signature
Re: printf $variable inside initial parenthesis or use %s?, David, 2023/01/11