* [9fans] p9p: symlink
@ 2017-04-18 1:29 arisawa
0 siblings, 0 replies; 2+ messages in thread
From: arisawa @ 2017-04-18 1:29 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello,
Symlink is one of ugly things in unix.
For example, my mac shows:
-bash$ ls -l /usr/bin/vi
lrwxr-xr-x 1 root wheel 3 11 18 2014 /usr/bin/vi -> vim
-bash$
This expression is something like a thorn.
Irregular fields makes things difficult.
The entity of /usr/bin/vi is /usr/bin/vim, which is
-bash$ ls -l /usr/bin/vim
-rwxr-xr-x 1 root wheel 1530240 6 24 2016 /usr/bin/vim
-bash$
I guess Russ hated the irregularity.
In plan9port we have
-bash$ 9 ls -l /usr/bin/vi
-Lrwxr-xr-x M 0 root wheel 3 Jun 24 2016 /usr/bin/vi
-bash$
but I wander why this isn't
-bash$ 9 ls -l /usr/bin/vi
-Lrwxr-xr-x M 0 root wheel 1530240 Jun 24 2016 /usr/bin/vi
-bash$
This comes from $P9P/src/lib9/_p9dir.c
if(S_ISLNK(lst->st_mode)){ /* yes, lst not st */
d->mode |= DMSYMLINK;
d->length = lst->st_size; <----- why Russ put this code?
}
Any merit?
Kenji Arisawa
-----
P.S. This mail is resent because the mail wasn't received by 9fans.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [9fans] p9p: symlink
@ 2017-04-17 13:38 arisawa
0 siblings, 0 replies; 2+ messages in thread
From: arisawa @ 2017-04-17 13:38 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello,
Symlink is one of ugly things in unix.
For example, my mac shows:
-bash$ ls -l /usr/bin/vi
lrwxr-xr-x 1 root wheel 3 11 18 2014 /usr/bin/vi -> vim
-bash$
This expression is something like a thorn.
Irregular fields makes things difficult.
The entity of /usr/bin/vi is /usr/bin/vim, which is
-bash$ ls -l /usr/bin/vim
-rwxr-xr-x 1 root wheel 1530240 6 24 2016 /usr/bin/vim
-bash$
I guess Russ hated the irregularity.
In plan9port we have
-bash$ 9 ls -l /usr/bin/vi
-Lrwxr-xr-x M 0 root wheel 3 Jun 24 2016 /usr/bin/vi
-bash$
but I wander why this isn't
-bash$ 9 ls -l /usr/bin/vi
-Lrwxr-xr-x M 0 root wheel 1530240 Jun 24 2016 /usr/bin/vi
-bash$
This comes from $P9P/src/lib9/_p9dir.c
if(S_ISLNK(lst->st_mode)){ /* yes, lst not st */
d->mode |= DMSYMLINK;
d->length = lst->st_size; <----- why Russ put this code?
}
Any merit?
Kenji Arisawa
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-18 1:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 1:29 [9fans] p9p: symlink arisawa
-- strict thread matches above, loose matches on Subject: below --
2017-04-17 13:38 arisawa
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).