From 2d77f94d9113d4c593da08941ea3640e942bf4dd Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Tue, 15 Jan 2019 01:26:01 +0100 Subject: [PATCH] Fixed qp_create --- docs/source/users_guide/qp_update.rst | 17 +++++++++++++++++ etc/qp.rc | 13 +++++++------ 2 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 docs/source/users_guide/qp_update.rst diff --git a/docs/source/users_guide/qp_update.rst b/docs/source/users_guide/qp_update.rst new file mode 100644 index 00000000..1be65fe3 --- /dev/null +++ b/docs/source/users_guide/qp_update.rst @@ -0,0 +1,17 @@ +.. _qp_update: + +========= +qp_update +========= + +.. program:: qp_update + +This command makes an update of the |QP| to the latest stable version. + +Usage +----- + +.. code:: bash + + qp_update [-h] + diff --git a/etc/qp.rc b/etc/qp.rc index 05ec514a..4e6bc1c5 100644 --- a/etc/qp.rc +++ b/etc/qp.rc @@ -50,15 +50,16 @@ function qp() "create_ezfio_from_xyz") shift # Replace ':' by spaces - for arg in $@ ; do + for arg in "$@" ; do case $arg in - -*) - _ARGS+=("${arg}") ;; - *) - _ARGS+=("\"${arg//:/ }\"") ;; + *:*) + _ARGS+=("\"${arg//:/ }\"") ;; + *) + _ARGS+=("${arg}") ;; esac done - NAME=$(eval "qp_create_ezfio_from_xyz ${_ARGS[@]}") + echo qp_create_ezfio_from_xyz "${_ARGS[@]}" + NAME=$(qp_create_ezfio_from_xyz "${_ARGS[@]}") if [[ -d $NAME ]] ; then [[ -d $EZFIO_FILE ]] && ezfio unset_file ezfio set_file $NAME