diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2018-02-11 12:20:18 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2018-02-11 12:20:18 +0100 |
commit | 583beebe0ff45ec165cbb0a298708969074e588c (patch) | |
tree | e59a3f57769662e08ea45cad8be6c1a14c829a4b | |
parent | bfe1dbafaec8d79cb77fca93d4daa5a98e2cbf29 (diff) | |
download | ranger-583beebe0ff45ec165cbb0a298708969074e588c.tar.gz |
Allow to use >(...) in Bash for --choosedir & its friends
I see no good reason why realpath was preferred there over abspath and it clearly was breaking the process substitution (">(...)") by turning for instance "/proc/self/fd/13" into "/proc/32444/fd/pipe:[4935093]", the latter not being a valid file.
-rw-r--r-- | ranger/core/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/main.py b/ranger/core/main.py index 99a32750..4adea918 100644 --- a/ranger/core/main.py +++ b/ranger/core/main.py @@ -299,7 +299,7 @@ def parse_arguments(): def path_init(option): argval = args.__dict__[option] try: - path = os.path.realpath(argval) + path = os.path.abspath(argval) except OSError as ex: sys.stderr.write( '--{0} is not accessible: {1}\n{2}\n'.format(option, argval, str(ex))) |