[Lunar-commits] <lunar> lsh: make sure we actually _evaluate_ the command line
Michael 'v4hn' Goerner
v4hn at lunar-linux.org
Wed Nov 21 14:36:34 CET 2012
commit b05617e86d4d83161e9180ab0e314f1035d7607b
Author: Michael 'v4hn' Goerner <v4hn at lunar-linux.org>
Date: Wed, 21 Nov 2012 05:36:34 -0800
URL: https://github.com/lunar-linux/lunar/commit/b05617e86d4d83161e9180ab0e314f1035d7607b
lsh: make sure we actually _evaluate_ the command line
This makes it possible to do things like `lsh "echo \$MOONBASE"`
---
prog/lsh | +1/-1
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/prog/lsh
+++ b/prog/lsh
@@ -10,7 +10,7 @@
set_priority
if (( $# > 0 )) ; then
- $@
+ eval "$@"
else
export PS1="\[\033[0;31m\][lunar] \u@\h \w \\$ \[\033[0m\]"
message "\n ${PROBLEM_COLOR}Warning:${DEFAULT_COLOR}${MESSAGE_COLOR}" \
More information about the Lunar-commits
mailing list