diff options
author | hut <hut@lavabit.com> | 2012-01-15 00:08:54 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-01-15 00:08:54 +0100 |
commit | a110af2a538104dd909e4766dd1c0044b804dbdc (patch) | |
tree | b7cbcc2e6d99d177be37891a271729c8b9eb4b0c | |
parent | 7fb3df7ce886f1f3085bd8561669cef714d077e3 (diff) | |
download | ranger-a110af2a538104dd909e4766dd1c0044b804dbdc.tar.gz |
defaults.commands.bulkrename: support filenames starting with -
-rw-r--r-- | ranger/defaults/commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/defaults/commands.py b/ranger/defaults/commands.py index 087d9b14..da0c6735 100644 --- a/ranger/defaults/commands.py +++ b/ranger/defaults/commands.py @@ -801,11 +801,11 @@ class bulkrename(Command): cmdfile.write(b"# This file will be executed when you close the editor.\n") cmdfile.write(b"# Please double-check everything, clear the file to abort.\n") if py3: - cmdfile.write("\n".join("mv -vi " + esc(old) + " " + esc(new) \ + cmdfile.write("\n".join("mv -vi -- " + esc(old) + " " + esc(new) \ for old, new in zip(filenames, new_filenames) \ if old != new).encode("utf-8")) else: - cmdfile.write("\n".join("mv -vi " + esc(old) + " " + esc(new) \ + cmdfile.write("\n".join("mv -vi -- " + esc(old) + " " + esc(new) \ for old, new in zip(filenames, new_filenames) if old != new)) cmdfile.flush() self.fm.execute_file([File(cmdfile.name)], app='editor') |