]> code.delx.au - dotfiles/commitdiff
bash: fix bug in edit/aliasfg
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 20 Jun 2021 12:13:28 +0000 (22:13 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 20 Jun 2021 12:13:28 +0000 (22:13 +1000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 2ccae929d0ec187b6f57d0311ad93639bd001771..69754e69d36ab052302e96de39ddb691ead7db29 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -165,7 +165,7 @@ trap print_exit_code ERR
 
 # This prevents long/ugly command lines from showing up in xterm titles
 function aliasf {
-    eval "function $1 { $2 \$@; }"
+    eval "function $1 { $2 \"\$@\"; }"
 }