From 1492fa43f23d5fbe9563ed5db0a3ecf31475453c Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Tue, 15 Jan 2013 18:56:17 -0600 Subject: [PATCH] * usr/bin/byobu-ctrl-a: LP: #1004031 - fix some bad problems introduced by single quotes - escape double quotes instead --- debian/changelog | 3 +++ usr/bin/byobu-ctrl-a | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index 54034d9a..d04ec0f7 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,6 +6,9 @@ byobu (5.28) unreleased; urgency=low conflicts with the -t option on the command line - add a hack to byobu that detects this, and avoids hanging - set title to . otherwise (seems we need one printable character here) + * usr/bin/byobu-ctrl-a: LP: #1004031 + - fix some bad problems introduced by single quotes + - escape double quotes instead -- Dustin Kirkland Mon, 14 Jan 2013 15:27:36 -0600 diff --git a/usr/bin/byobu-ctrl-a b/usr/bin/byobu-ctrl-a index 1233d8f8..60e21338 100755 --- a/usr/bin/byobu-ctrl-a +++ b/usr/bin/byobu-ctrl-a @@ -82,7 +82,7 @@ case "$bind_to" in case "$BYOBU_BACKEND" in screen) $BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^\"/d" -e "/^escape escape \^${KEY}${key}/d" "$keybindings" - echo 'bindkey "^${KEY}"' >> "$keybindings" + echo "bindkey \"^${KEY}\"" >> "$keybindings" $BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile" ;; tmux) @@ -98,9 +98,9 @@ case "$bind_to" in case "$BYOBU_BACKEND" in screen) $BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^\"/d" -e "/^escape /d" "$keybindings" - echo 'escape "^${KEY}${key}"' >> "$keybindings" - echo 'register x "^${KEY}"' >> "$keybindings" - echo 'bindkey "^${KEY}"' >> "$keybindings" + echo "escape \"^${KEY}${key}\"" >> "$keybindings" + echo "register x \"^${KEY}\"" >> "$keybindings" + echo "bindkey \"^${KEY}\"" >> "$keybindings" $BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile" ;; tmux)