[OE-core] [PATCH 2/2] base-files: profile: Make the "resize" command have the intended effect
Mike Looijmans
mike.looijmans at topic.nl
Mon Sep 18 08:39:26 UTC 2017
The "resize" command outputs shell script to be evaluated. The proper way
to use it is to do:
eval `resize`
This sets the related environment variables COLUMNS and ROWS so that a vi
invokation uses the proper dimensions. Without the "eval" part, running
vi still gives a garbled screen when the dimensions aren't 80x25.
Signed-off-by: Mike Looijmans <mike.looijmans at topic.nl>
---
meta/recipes-core/base-files/base-files/profile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/base-files/base-files/profile b/meta/recipes-core/base-files/base-files/profile
index b5b533c..36bd35f 100644
--- a/meta/recipes-core/base-files/base-files/profile
+++ b/meta/recipes-core/base-files/base-files/profile
@@ -26,7 +26,7 @@ fi
# /dev/tty[A-z]), otherwise we confuse e.g. the eclipse launcher which
# tries do use ssh
case $(tty 2>/dev/null) in
- /dev/tty[A-z]*) resize >/dev/null;;
+ /dev/tty[A-z]*) eval `resize` ;;
esac
export PATH PS1 OPIEDIR QPEDIR QTDIR EDITOR TERM
--
1.9.1
More information about the Openembedded-core
mailing list