zsh-users
 help / color / mirror / code / Atom feed
From: J <jean.chalard@gmail.com>
To: UVV <UVV-mail@yandex.ru>
Cc: zsh-users@sunsite.dk
Subject: Re: named directories
Date: Sun, 7 Aug 2005 12:00:27 +0200	[thread overview]
Message-ID: <fb6be96e05080703007e9965e0@mail.gmail.com> (raw)
In-Reply-To: <42F5843F.4020206@yandex.ru>

> What difference between named directory and home directory?

The named directories are a list of directories for which a name is associated
explicitly by the user. That way, you can use the alias instead of the full
directory name. For example, if there is a variable
mydir=/home/me/foo/bar/qux
you can use ~mydir instead of /home/me/foo/bar/qux

The named directories are defined by the user by setting a variable to a valid
path ; there can be as many as you want.


The home directories are the directories where users have their actual home.
This is defined by how the system is installed and can usually be changed
by root only. The shell treats the name of the user exactly as if it was a
named directory pointing to the home of the user, though there is no variable
by that name. The home directories are defined in /etc/passwd, and are not
only used by the shell but a variety of other things, including the system
itself, even if most of the time the shell is the one who does the actual
substitution.


A last difference is that home directories can be reffered to as ~user in every
shell I can think of, whereas named directories work in zsh only (and maybe
ksh, I can't remember).

-- 
J
"If you wish to leave a record of your call,
 please state your messij at the sound of the tone."


  reply	other threads:[~2005-08-07 10:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-07  3:47 UVV
2005-08-07 10:00 ` J [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-02-21 14:17 Named directories Mika Seppänen
2005-02-21 14:21 ` Vincent Lefevre
2005-02-21 14:31 ` Peter Stephenson
2005-02-21 14:51   ` Mika Seppänen
2005-02-21 21:49     ` Mika Seppänen
2005-02-22  4:35     ` Seth Kurtzberg
2005-02-22 11:54       ` Mika Seppänen
2005-02-22 13:09         ` Seth Kurtzberg
2005-02-26 22:17 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fb6be96e05080703007e9965e0@mail.gmail.com \
    --to=jean.chalard@gmail.com \
    --cc=UVV-mail@yandex.ru \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).