[issue33739] pathlib: Allow ellipsis to appear after "/" to navigate to parent path
Timo Furrer
report at bugs.python.org
Sat Jun 2 06:45:38 EDT 2018
Timo Furrer <tuxtimo at gmail.com> added the comment:
> I've just tried, "..." doesn't seem to mean anything on the Windows CLI.
It's not only about Windows / Linux here - it's about the shell and command which is being used. If we talk about "cd" for example - it's a builtin in most common shells on Linux, which behave differently:
bash:
/a/b/c $ cd ...
bash: cd: ...: No such file or directory
dash:
/a/b/c $ cd ...
dash: 8: cd: can't cd to ...
zsh:
/a/b/c $ cd ...
/a $
I think using '...' to navigate to the parent is confusing.
It's well known and agreed that '..' is for navigating to the parent.
'...' looks similar but is definitely not the same as '..' and therefore shouldn't be treated as such.
----------
nosy: +tuxtimo
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33739>
_______________________________________
More information about the Python-bugs-list
mailing list