Bug#578734: default/grub: Use POSIX command substitution

Jari Aalto jari.aalto at cante.net
Thu Apr 22 10:10:03 UTC 2010


Package: grub2
Severity: wishlist
Tags: patch

POSIX command substitution

The following patch updates to use POSIX[1] command substitution $() in
place of backtics (``).

Motivation:

- The $() is recommend by many[2]. E.g it nests easily
- Readability. In high resolution display a "tick" is hard to see. Selected
  font may also make reading the "tick" difficult.
- Keyboards may have the tick key in an unnatural position that makes
  it hard to type. E.g acrobatics is needed with FI-keyboard
  (AltGr+key+Space char)

REFERENCES

[1] POSIX standard IEEE Std 1003.1: 2.6.3 Command Substitution
http://www.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_06_03

[2]
Bash manual: "...old-style backquote" in section "3.5.4 Command Substitution"
http://www.gnu.org/software/bash/manual/bashref.html#Command-Substitution

BashFAQ: Why is $(...) preferred over `...` (backticks)?
http://mywiki.wooledge.org/BashFAQ/082

Advanced Bash-Scripting Guide: "...The $(...) form has
superseded backticks for command substitution."
http://tldp.org/LDP/abs/html/commandsub.html

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-default-grub-Use-POSIX-command-substitution.patch
Type: text/x-news
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100422/55600d45/attachment.bin>


More information about the Pkg-grub-devel mailing list