Fix ex function so it takes filenames with spaces.

This commit is contained in:
Derek Taylor
2021-11-04 09:00:58 -05:00
parent d7f9eefb3c
commit 3167ce80f4

View File

@@ -77,7 +77,7 @@ bind "set completion-ignore-case on"
# usage: ex <file>
ex ()
{
if [ -f $1 ] ; then
if [ -f "$1" ] ; then
case $1 in
*.tar.bz2) tar xjf $1 ;;
*.tar.gz) tar xzf $1 ;;