作者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)