Commit 96383bc2 authored by Jacek Sowiński's avatar Jacek Sowiński

Properly split alias options wrapped in quotes

parent ab0ecdd4
......@@ -15,6 +15,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import os
import shlex
from six import iteritems
from six.moves import configparser
......@@ -301,7 +302,7 @@ class _Config:
alias_dict = dict()
for alias, meaning in aliases:
meaning = meaning.split()
meaning = shlex.split(meaning)
real_subcommand = meaning[0]
alias_args = meaning[1:]
alias_dict[alias] = (real_subcommand, alias_args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment