From: "Oleg K. Artemjev" <olli@rbauto.ru>
To: community@altlinux.ru
Subject: [Comm] ?: поведение 'ls ..' после cd на symlink - почему так правильно?
Date: Tue, 28 Jan 2003 15:10:23 +0300
Message-ID: <20030128151023.5655c798.olli@rbauto.ru> (raw)
[root@ws002 root]# ls
auto_inst.cfg.pl ddebug.log ddebug.log2 GNUstep Mail nsmail report.bug tmp
bin ddebug.log1 Desktop install.log1 minicom.log replay_install.img testdir
[root@ws002 root]# cd testdir
[root@ws002 testdir]# ls ..
dcpcd.strace hwconf mnt sizes.1.log testdir vmware
from_Serge_Maykov isc4.gdb ms-ttf-1.0-alt2.abr2.noarch.rpm sizes.log test_file2.ps
headers log package-conflicts test test_file.ps
[root@ws002 testdir]# cd ..
[root@ws002 root]# ls -l /tmp | grep testdir
lrwxrwxrwx 1 root root 7 Jan 28 15:05 test -> testdir
drwxr-xr-x 2 root root 4096 Jan 28 15:05 testdir
[root@ws002 root]# ls -l ~ | grep testdir
lrwxrwxrwx 1 root root 13 Jan 28 15:06 testdir -> /tmp/testdir/
[root@ws002 root]#
Я о том, что ls .. после захода по ссылке мог бы показывать содержимое ~, а не /tmp. Почему выбран именно этот вариант?
--
Bye.Olli. http://olli.digger.org.ru
reply other threads:[~2003-01-28 12:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030128151023.5655c798.olli@rbauto.ru \
--to=olli@rbauto.ru \
--cc=community@altlinux.ru \
/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
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git