bash's built-in echo already understands -n. --- dracut-gencmdline | 15 ++------------- 1 files changed, 2 insertions(+), 13 deletions(-) diff --git a/dracut-gencmdline b/dracut-gencmdline index 733f199..2901199 100755 --- a/dracut-gencmdline +++ b/dracut-gencmdline @@ -21,22 +21,11 @@ function error() { - local NONL="" - if [ "$1" == "-n" ]; then - NONL="-n" - shift - fi - echo $NONL "$@" >&2 + echo "$@" >&2 } function vecho() { - return - local NONL="" - if [ "$1" == "-n" ]; then - NONL="-n" - shift - fi - is_verbose && echo $NONL "$@" + is_verbose && echo "$@" } # module dep finding and installation functions -- 1.6.0.4 -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html