From: arisawa <karisawa@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] p9p: symlink
Date: Tue, 18 Apr 2017 10:29:25 +0900 [thread overview]
Message-ID: <930069E7-B8D0-4829-A9EE-6611DCAF26A9@gmail.com> (raw)
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.
next reply other threads:[~2017-04-18 1:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-18 1:29 arisawa [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-04-17 13:38 arisawa
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=930069E7-B8D0-4829-A9EE-6611DCAF26A9@gmail.com \
--to=karisawa@gmail.com \
--cc=9fans@9fans.net \
/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.
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).