From 3167ce80f4a85f6c2e04eccd426b7a0b48284a9e Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 4 Nov 2021 09:00:58 -0500 Subject: [PATCH] Fix ex function so it takes filenames with spaces. --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index f78513d..d12f534 100644 --- a/.bashrc +++ b/.bashrc @@ -77,7 +77,7 @@ bind "set completion-ignore-case on" # usage: ex ex () { - if [ -f $1 ] ; then + if [ -f "$1" ] ; then case $1 in *.tar.bz2) tar xjf $1 ;; *.tar.gz) tar xzf $1 ;;