From 2410b61f430c3ac4be79043f8b00defe6d53148c Mon Sep 17 00:00:00 2001 From: Roland Mainz Date: Sun, 9 Jan 2005 00:38:08 +0000 Subject: [PATCH] //bugs.freedesktop.org/show_bug.cgi?id=2240) attachment #1642 (https://bugs.freedesktop.org/attachment.cgi?id=1642): Fix incorrect usage of /usr/bin/tr in startup script (the used "[\n]" is neither correct or portable, using "\n" seems to be sufficient (this fixes various "random" issues, including including Debian bug #258419 and Debian bug #264983). Patch by Drew Parsons . --- Xprint/etc/init.d/xprint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xprint/etc/init.d/xprint.cpp b/Xprint/etc/init.d/xprint.cpp index 40ab6fbae..56fae1d2b 100644 --- a/Xprint/etc/init.d/xprint.cpp +++ b/Xprint/etc/init.d/xprint.cpp @@ -248,7 +248,7 @@ get_fontlist_from_xfs_config() tok="${val#*=}" done done - ) | tr "," "[\n]" | fontpath2fontlist + ) | tr "," "\n" | fontpath2fontlist } get_fontlist_from_all_xfs_configs() @@ -832,7 +832,7 @@ do_get_xpserverlist() echo ${display} fi ) - done | tr "[\n]" " " + done | tr "\n" " " ) # Only produce output if we have some entries... [ "${xpserverlist}" != "" ] && echo "${xpserverlist}"