20.12.2024 03:39, Tomasz Pala via Postfix-users wrote:
On 2024-12-20 01:33, Tomasz Pala via Postfix-users wrote:
This seems wrong:
if [ ! "$set" ]; then
It is not, it tests for emptiness of the value. Not a
difference between y and n, but between empty and non-empty.
...not mentioning using reserved word as a variable.
Same here:
{ while read name type x x chroot x x cmd x; do
- don't use "type" and "chroot", unless you want "funny" mistakes some
day. There is a _underscore convention.
There's absolutely no reason to resort to funny tricks here.
A variable name can be any alphanumeric in sh, a variable
name is trivially distinguishable from a keyword. Hint:
if your editor highlight "type" in there, blame your editor,
it is wrong.
/mjt
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org