summary refs log tree commit diff stats
diff options
context:
space:
mode:
authornightsense <nightsense@protonmail.ch>2016-08-06 03:17:20 -0400
committernightsense <nightsense@protonmail.ch>2016-08-06 03:17:20 -0400
commitdd6b47230066a81c83c5272b34dd47c67a7cd5d8 (patch)
tree3b5b3aa509a6c95fc69c0fe7488f2abd663dae85
parentab6643976a91e2517af224e6c2ab99f631660cd7 (diff)
downloadranger-dd6b47230066a81c83c5272b34dd47c67a7cd5d8.tar.gz
add hash to escaped characters in shell commands
This is required for shell commands to succeed with filenames that
start with the hash character. The 'mv' command invoked by 'bulkrename',
for instance, will fail with such files unless hashes are escaped.
-rw-r--r--ranger/ext/shell_escape.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/shell_escape.py b/ranger/ext/shell_escape.py
index fe542084..d57ff339 100644
--- a/ranger/ext/shell_escape.py
+++ b/ranger/ext/shell_escape.py
@@ -3,7 +3,7 @@
 
 """Functions to escape metacharacters of arguments for shell commands."""
 
-META_CHARS = (' ', "'", '"', '`', '&', '|', ';',
+META_CHARS = (' ', "'", '"', '`', '&', '|', ';', '#',
         '$', '!', '(', ')', '[', ']', '<', '>', '\t')
 UNESCAPABLE = set(map(chr, list(range(9)) + list(range(10, 32))
         + list(range(127, 256))))