Skip to content

Commit

Permalink
fix quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
mmitch committed Feb 16, 2014
1 parent 525259c commit 24dff2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vtysh_wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,14 @@ shift
# concatenate all other parameters and remove quoting, if present
ARGS="$*"
IFS=\'
set -- "$ARGS"
set -- $ARGS
IFS=\
ARGS="$*"
IFS=\"
set -- "$ARGS"
set -- $ARGS
IFS=\
ARGS="$*"

# wrap call to vtysh
echo "<$VTYSH>" -c "<$ARGS>"
"$VTYSH" -c "$ARGS"

0 comments on commit 24dff2d

Please sign in to comment.