From 7415d03df0362a08b4ccf405f8f98147c76e6329 Mon Sep 17 00:00:00 2001 From: sarneaud Date: Sat, 29 Aug 2015 09:35:47 +1000 Subject: Rewrite globbing code to fix various minor issues * Plug a memory leak. * Remove the short-circuit. (This breaks when someone uses [] or ? patterns without using *. I figure it's best to use the principle of least surprise and just let the system glob() implementation do what it does.) * Stop sorting results. I've also replaced a lot of disable-history.inc with a glob pattern. Now it catches files like .sqlite_history and whatever the user runs under rlwrap. --- etc/disable-history.inc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'etc') diff --git a/etc/disable-history.inc b/etc/disable-history.inc index 66261c1cf..7a91df828 100644 --- a/etc/disable-history.inc +++ b/etc/disable-history.inc @@ -1,10 +1,3 @@ # History files in $HOME blacklist ${HOME}/.history -blacklist ${HOME}/.bash_history -blacklist ${HOME}/.zsh_history -blacklist ${HOME}/.ksh_history -blacklist ${HOME}/.sh_history -blacklist ${HOME}/.nano_history -blacklist ${HOME}/.python_history -blacklist ${HOME}/.mysql_history -blacklist ${HOME}/.pgsql_history \ No newline at end of file +blacklist ${HOME}/.*_history -- cgit v1.2.3-54-g00ecf