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

Jari Aalto jari.aalto at cante.net
Fri Apr 10 09:51:50 UTC 2009


Martin Pitt <mpitt at 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





More information about the Pkg-cups-devel mailing list