OT: named dirs [was Re: /usr/doc]
> > joey@silk:~>doc=/usr/share/doc
> > joey@silk:~>less ~doc/debian-policy/policy.txt.gz
>
> Nice. however how is this different from setting doc to /usr/share/doc
> and then using $doc to refer to it? The only thing I can see is that it
> get's expanded if I use tab completion, but that's not a real problem.
If you use $doc, it won't get hashed as a named directory. So, in the
former case, if you happen to cd to /usr/share/doc, %~ in your prompt
escape will expand to "~doc" instead of "/usr/share/doc". That is,
unless you've hashed it already.
--
To UNSUBSCRIBE, email to debian-policy-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: