Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But general tendency is to go from specific to the general. That's because single name is often enough to uniquely identify something in a given context. If I say "10 Downing Street", you'd know that I'm referring to the British PM's office even if we were sitting in Palookaville Kansas. In a filesystem, that's even more true. We aren't going to have dozens upon dozens of files named "xorg.conf".

Imagine if file paths were expressed in reverse. You want to edit xorg.conf. As soon as you enter "vi xor" the shell would know enough to auto-complete it to "vi xorg.conf/X11/etc". As it is, organizing files into a logical structure actually makes them harder to find.



I'd say that's a bit of an edge case. Consider editing a file named README, index.html, .htaccess, or any number of other files which occur in many places with the same name.


Actually, that could still work:

  > in<TAB>
  index.html@.
  init.sh@..
  index.html@foobar@..
  ...
  inputrc@etc@/
The problem I see is this makes it hard to have domain-specific or optional address interpretation. Eg "foo.png=FILE?get@example.com[http]" or... something to that effect.


> The problem I see

Come to think of it, that also breaks option escaping in glob et al:

  ./--kill=everything
  vs
  --kill=everything@.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: