eval is evil
Proper quoting is hard Bugs galore
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
# $Id$
|
# $Id$
|
||||||
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.76 2013/02/10 23:30:47 tg Exp $
|
# $MirOS: src/bin/mksh/dot.mkshrc,v 1.77 2013/02/17 15:58:26 tg Exp $
|
||||||
#-
|
#-
|
||||||
# Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010,
|
# Copyright (c) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010,
|
||||||
# 2011, 2012, 2013
|
# 2011, 2012, 2013
|
||||||
@ -351,7 +351,7 @@ function Lstripcom {
|
|||||||
|
|
||||||
# give MidnightBSD's laffer1 a bit of csh feeling
|
# give MidnightBSD's laffer1 a bit of csh feeling
|
||||||
function setenv {
|
function setenv {
|
||||||
eval export $1'="$2"'
|
eval export "\"$1\""'="$2"'
|
||||||
}
|
}
|
||||||
|
|
||||||
: place customisations below this line
|
: place customisations below this line
|
||||||
|
Reference in New Issue
Block a user