Package: lsb-base Version: 3.2-23.1 Severity: wishlist
Elsewhere in the init-functions POSIX command substitutions are in use, so here are the rest to canonicalize the content. -- 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-5-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 Versions of packages lsb-base depends on: ii ncurses-bin 5.7+20100313-4 terminal-related programs and man ii sed 4.2.1-7 The GNU sed stream editor lsb-base recommends no packages. lsb-base suggests no packages. -- no debconf information
>From 7c01305ad4b2484ca3764e14b392482979fd70ec Mon Sep 17 00:00:00 2001 From: Jari Aalto <[email protected]> Date: Sun, 31 Oct 2010 23:33:59 +0200 Subject: [PATCH] init-functions: Prefer POSIX $() command substitution Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto <[email protected]> --- init-functions | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/init-functions b/init-functions index 57444b8..c930359 100644 --- a/init-functions +++ b/init-functions @@ -310,9 +310,9 @@ log_end_msg () { # Only do the fancy stuff if we have an appropriate terminal # and if /usr is already mounted if log_use_fancy_output; then - RED=`$TPUT setaf 1` - YELLOW=`$TPUT setaf 3` - NORMAL=`$TPUT op` + RED=$( $TPUT setaf 1) + YELLOW=$( $TPUT setaf 3) + NORMAL=$( $TPUT op) else RED='' YELLOW='' @@ -354,8 +354,8 @@ log_action_end_msg () { echo "done${end}" else if log_use_fancy_output; then - RED=`$TPUT setaf 1` - NORMAL=`$TPUT op` + RED=$( $TPUT setaf 1) + NORMAL=$( $TPUT op) /bin/echo -e "${RED}failed${end}${NORMAL}" else echo "failed${end}" -- 1.7.2.3

