Hi, The attached file is the diff for my slay 2.6.2+nmu1 NMU. The associated changelog entry is:
slay (2.6.2+nmu1) unstable; urgency=medium
* Non-maintainer upload.
* Fix bashisms in 'slay' script (Closes: #472885)
Regards,
--
Chris Lamb, UK [EMAIL PROTECTED]
GPG: 0x634F9A20
diff -Nru slay-2.6.2/debian/changelog slay-2.6.2+nmu1/debian/changelog
--- slay-2.6.2/debian/changelog 2008-03-08 10:14:51.000000000 +0000
+++ slay-2.6.2+nmu1/debian/changelog 2008-04-12 04:16:17.000000000 +0100
@@ -1,3 +1,10 @@
+slay (2.6.2+nmu1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix bashisms in 'slay' script (Closes: #472885)
+
+ -- Chris Lamb <[EMAIL PROTECTED]> Sat, 12 Apr 2008 04:15:12 +0100
+
slay (2.6.2) unstable; urgency=low
* Fixed behavior of misuse trap (patch from Erik Bernstein)
diff -Nru /tmp/DanJvhl4eV/slay-2.6.2/slay /tmp/w7SVeDTbI9/slay-2.6.2+nmu1/slay
--- slay-2.6.2/slay 2008-03-08 07:44:11.000000000 +0000
+++ slay-2.6.2+nmu1/slay 2008-04-12 04:17:49.000000000 +0100
@@ -89,7 +89,7 @@
fi
# Misuse trap.
-if [ "$USER" != "${SLAYEE// /}" ]
+if [ "$USER" != "$(echo "${SLAYEE}" | sed -e 's/ //g')" ]
then
if [ "$USER" != "root" ]
then
@@ -124,10 +124,10 @@
if [ "$SLAY_BUTTHEAD" = "on" ]
then
echo "${ME}: $SIGSHOW is kicking $slayee's butt!"
- echo -e "\\n\\n\\nI'm kicking your butt.\\n\\n\\n" | write $slayee
+ printf "\\n\\n\\nI'm kicking your butt.\\n\\n\\n\n" | write $slayee
else
echo "${ME}: Sending $SIGSHOW signal to $slayee's process(es)..."
- echo -e "\\n\\n\\nYour current session has been terminated.\\n\\n\\n" | \
+ printf "\\n\\n\\nYour current session has been terminated.\\n\\n\\n\n" | \
write $slayee
fi
if [ "$SIGNAL" = "-clean" ]
signature.asc
Description: PGP signature

