作者wens ( )
看板b92902xxx
标题Re: [情报] 今天问助教的说法
时间Mon Apr 11 19:53:36 2005
※ 引述《chhsiao (bye~)》之铭言:
: 1. absolute path 是以 getcwd 的结果为准,
: 因此除了最後的档名之外, 路径中不会出现 symbolic name.
这是我之前写信问的结果
助教寄给我的时间是 4/4
讲法跟他现在讲的完全不同
X-Original-To:
[email protected]
From: Nei-Chiung Perng <
[email protected]>
To:
[email protected]
Subject: Re: [System Programming] Assignment 2 - About the parameters
X-Virus-Scanned: ClamAV using ClamSMTP
Dear Wens,
It's okay to print out the "/tmp/foo/bar/FB".
Best Regards,
Nei-Chiung Perng.
----- Original Message -----
From: <
[email protected]>
To: "Nei-Chiung Perng" <
[email protected]>
Cc: <
[email protected]>
Sent: Saturday, April 02, 2005 4:48 PM
Subject: Re: [System Programming] Assignment 2 - About the parameters
>Dear TA,
>
>I have another question.
>Do I need to dereference the symlinks in the pathname?
>
>Example:
>If I find "/tmp/foo/bar/FB", and "/tmp/foo" is a symlink to "/tmp2",
>should I output "/tmp/foo/bar/FB" or "/tmp2/bar/FB" ?
>
>Thanks again.
>
: 2. Match 档名时, 以直接看到的档名为准.
: 3. 除了 loop 之外, 看到几次目录就进去几次 (包括 links),
: 看到几次 regular file 就 edit 几次.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.30.82
※ 编辑: wens 来自: 140.112.30.82 (04/11 19:54)