* usr/bin/byobu-ctrl-a: LP: #1004031

- fix some bad problems introduced by single quotes
  - escape double quotes instead
This commit is contained in:
Dustin Kirkland 2013-01-15 18:56:17 -06:00
commit 1492fa43f2
2 changed files with 7 additions and 4 deletions

3
debian/changelog vendored
View file

@ -6,6 +6,9 @@ byobu (5.28) unreleased; urgency=low
conflicts with the -t option on the command line conflicts with the -t option on the command line
- add a hack to byobu that detects this, and avoids hanging - add a hack to byobu that detects this, and avoids hanging
- set title to . otherwise (seems we need one printable character here) - 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 <kirkland@ubuntu.com> Mon, 14 Jan 2013 15:27:36 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 14 Jan 2013 15:27:36 -0600

View file

@ -82,7 +82,7 @@ case "$bind_to" in
case "$BYOBU_BACKEND" in case "$BYOBU_BACKEND" in
screen) screen)
$BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^\"/d" -e "/^escape escape \^${KEY}${key}/d" "$keybindings" $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" $BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile"
;; ;;
tmux) tmux)
@ -98,9 +98,9 @@ case "$bind_to" in
case "$BYOBU_BACKEND" in case "$BYOBU_BACKEND" in
screen) screen)
$BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^\"/d" -e "/^escape /d" "$keybindings" $BYOBU_SED -i -e "/^register x /d" -e "/^bindkey \"^\"/d" -e "/^escape /d" "$keybindings"
echo 'escape "^${KEY}${key}"' >> "$keybindings" echo "escape \"^${KEY}${key}\"" >> "$keybindings"
echo 'register x "^${KEY}"' >> "$keybindings" echo "register x \"^${KEY}\"" >> "$keybindings"
echo 'bindkey "^${KEY}"' >> "$keybindings" echo "bindkey \"^${KEY}\"" >> "$keybindings"
$BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile" $BYOBU_BACKEND -X at 0 source "$BYOBU_CONFIG_DIR/profile"
;; ;;
tmux) tmux)