* [Comm] ?: поведение 'ls ..' после cd на symlink - почему так правильно?
@ 2003-01-28 12:10 Oleg K. Artemjev
0 siblings, 0 replies; only message in thread
From: Oleg K. Artemjev @ 2003-01-28 12:10 UTC (permalink / raw)
To: community
[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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-28 12:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-28 12:10 [Comm] ?: поведение 'ls ..' после cd на symlink - почему так правильно? Oleg K. Artemjev
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