[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#523399: [Pkg-cups-devel] Bug#523399: cups: /etc/init.d/cups - use POSIX command substitution $()



Martin Pitt <mpitt@debian.org> writes:

> Hello Jari,
>
> Jari Aalto [2009-04-10  1:31 +0300]:
>> The following patch adjusts /etc/init.d/apache2 to use POSIX $()
>> command substitution[1].
>
> Backtick style command substitution is also well-defined as far as I
> can see. What's the rationale for the change?
>
> For normal scripts I wouldn't care so much, but I would like to have a
> convincing reason for changing a conffile.

- The $() was introduced to POSIX to improve readability.
- The $() is more safe. It nests, and
  "...all characters between the parentheses make up the command; none
  are treated specially"[1]

Jari

[1]
http://www.gnu.org/software/bash/manual/bashref.html#Command-Substitution




Reply to: