From 583beebe0ff45ec165cbb0a298708969074e588c Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Sun, 11 Feb 2018 12:20:18 +0100 Subject: 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. --- ranger/core/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) -- cgit 1.4.1-2-gfad0