Package: lsb-base Version: 3.2-23.1 Severity: minor
POSIX echo[1] command does not support command line options. Use /bin/echo for those, like elsewhere in the library. [1] http://www.opengroup.org/onlinepubs/9699919799/utilities/echo.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-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 0da23d436d5b711be7c9325ddfe12107fcf69fa8 Mon Sep 17 00:00:00 2001 From: Jari Aalto <[email protected]> Date: Mon, 1 Nov 2010 00:27:00 +0200 Subject: [PATCH] init-functions: Use /bin/echo. POSIX echo does not take options Organization: Private Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Signed-off-by: Jari Aalto <[email protected]> --- init-functions | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/init-functions b/init-functions index 57444b8..0624dd3 100644 --- a/init-functions +++ b/init-functions @@ -241,7 +241,7 @@ log_begin_msg () { if [ -z "${1:-}" ]; then return 1 fi - echo -n "$@" + /bin/echo -n "$@" } # Sample usage: @@ -265,11 +265,11 @@ log_daemon_msg () { log_daemon_msg_pre "$@" if [ -z "${2:-}" ]; then - echo -n "$1:" + /bin/echo -n "$1:" return fi - echo -n "$1: $2" + /bin/echo -n "$1: $2" log_daemon_msg_post "$@" } @@ -292,7 +292,7 @@ log_progress_msg () { if [ -z "${1:-}" ]; then return 1 fi - echo -n " $@" + /bin/echo -n " $@" } @@ -335,11 +335,11 @@ log_action_msg () { } log_action_begin_msg () { - echo -n "$...@..." + /bin/echo -n "$...@..." } log_action_cont_msg () { - echo -n "$...@..." + /bin/echo -n "$...@..." } log_action_end_msg () { -- 1.7.2.3

