Репозитории ALT
S: | 2.7.0-alt1 |
5.1: | 2.5.27-alt1 |
4.1: | 2.5.23-alt1 |
4.0: | 2.5.18-alt2 |
3.0: | 2.5.13-alt1 |
Другие репозитории
Upstream: | 2.5.25 |
Группа :: Графические оболочки/FVWM-подобные
Пакет: fvwm
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: fvwm-2.6.8-alt-fvwmbug-printf.patch
Скачать
Скачать
From fd198eb33f3c4935c98fb11c26be7800d10143fc Mon Sep 17 00:00:00 2001
From: Vladislav Zavjalov <slazav@altlinux.org>
Date: Wed, 13 Feb 2019 08:31:19 +0200
Subject: [PATCH] fvwm-bug: use printf instead of echo (remove checkbashisms
warning)
---
fvwm/bin/fvwm-bug.in | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/fvwm/bin/fvwm-bug.in b/fvwm/bin/fvwm-bug.in
index dd54b03..5987c61 100644
--- fvwm/bin/fvwm-bug.in
+++ fvwm/bin/fvwm-bug.in
@@ -85,13 +85,6 @@ fi
TEMP=`mktemp -t fvwm-bug.XXXXXXXXXX` || exit
TEMPx=`mktemp -t fvwm-bug.XXXXXXXXXX` || { rm -f -- "$TEMP"; exit 1; }
-# Figure out how to echo a string without a trailing newline
-N=`echo 'hi there\c'`
-case "$N" in
- *c) n=-n c= ;;
- *) n= c='\c' ;;
-esac
-
exit_handler()
{
local rc=$?
@@ -112,7 +105,7 @@ if test x"$address" = x; then
if test "$LOCAL"; then
echo "Do you want to send the report to the local maintainer <$LOCAL>,"
echo "the fvwm workers <$WORKERS>, or both?"
- echo $n "Send report to (l)ocal, (w)orkers, (b)oth? " $c
+ printf "Send report to (l)ocal, (w)orkers, (b)oth? "
read ans
case "$ans" in
l*|L*) BUGADDR="$LOCAL";;
@@ -184,7 +177,7 @@ until $EDIT "$TEMP"; do
echo "$0: Perhaps it was interrupted."
echo "$0: Type \`y' to give up, and lose your bug report;"
echo "$0: type \`n' to re-enter the editor."
- echo $n "$0: Do you want to give up? $c"
+ printf "$0: Do you want to give up? "
read ans
case "$ans" in
@@ -200,7 +193,7 @@ then
exit
fi
-echo $n "Send bug report? [y/n] $c"
+printf "Send bug report? [y/n] "
read ans
case "$ans" in
[Nn]*) exit 0 ;;
--
2.10.5