diff options
author | hut <hut@lavabit.com> | 2010-02-14 13:21:12 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2010-02-14 22:17:00 +0100 |
commit | d1887144750bfa0c9b1b25e019f39e3b31b73481 (patch) | |
tree | 413ddeeb3daba1842bae1ce5ef27c332729572ac | |
parent | c44b726eb81795a0310ad1a0a3e54fdc8304fc1c (diff) | |
download | ranger-d1887144750bfa0c9b1b25e019f39e3b31b73481.tar.gz |
ranger.py: reverted cd-after-exit to the old way
This breaks cd-after-exit after Ctrl+C again, but enables compatibility with zsh which I prefer over the former. If you only use bash, you can safely revert this commit unless future changes make it break.
-rwxr-xr-x | ranger.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ranger.py b/ranger.py index b38876ee..758fb5fb 100755 --- a/ranger.py +++ b/ranger.py @@ -26,17 +26,8 @@ if [ $1 ]; then ranger_exec="$1" shift - - trap "" INT - exec 3< <($ranger_exec --cd-after-exit $@ 3>&1 1>&2 2>&3 3>&-) - - while read ranger_output; do false; done <&3 - cd "$ranger_output" - - exec 3<&- - trap - INT + cd `exec $ranger_exec --cd-after-exit $@ 3>&1 1>&2 2>&3 3>&-` unset ranger_exec - unset ranger_output else echo "usage: source path/to/ranger.py path/to/ranger.py" fi |