mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-31 10:26:52 +08:00
px4-alias.sh_in: allow for spaces in 'set' alias
Required for expressions like:
set LOGGER_ARGS "${LOGGER_ARGS} -f"
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# bash and alternatives understand
|
# bash and alternatives understand
|
||||||
# define _set first because sh (POSIX shell) does not like overwriting set directly
|
# define _set first because sh (POSIX shell) does not like overwriting set directly
|
||||||
_set() {
|
_set() {
|
||||||
eval $1=$2
|
eval $1=\"$2\"
|
||||||
}
|
}
|
||||||
alias set=_set
|
alias set=_set
|
||||||
# alternative method with an alias:
|
# alternative method with an alias:
|
||||||
|
|||||||
Reference in New Issue
Block a user