Re: [情報] 今天問助教的說法

看板b92902xxx作者 ( )時間19年前 (2005/04/11 19:52), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/9 (看更多)
※ 引述《chhsiao (bye~)》之銘言: : 1. absolute path 是以 getcwd 的結果為準, : 因此除了最後的檔名之外, 路徑中不會出現 symbolic name. 這是我之前寫信問的結果 助教寄給我的時間是 4/4 講法跟他現在講的完全不同 X-Original-To: wens@wens2.csie.org From: Nei-Chiung Perng <neil@newslab.csie.ntu.edu.tw> To: wens@wens2.csie.org 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: <wens@wens2.csie.org> To: "Nei-Chiung Perng" <neil@newslab.csie.ntu.edu.tw> Cc: <wens@wens2.csie.org> 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)
文章代碼(AID): #12McKJ_1 (b92902xxx)
討論串 (同標題文章)
文章代碼(AID): #12McKJ_1 (b92902xxx)