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

看板b92902xxx作者 ( )時間19年前 (2005/04/11 20:04), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串5/9 (看更多)
※ 引述《babysilkwarm (曉友會開跑 ^^)》之銘言: : : 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", : 是"/tmp2"連到"/tmp/foo" : 還是"/tmp/foo"連到"/temp2"?? /tmp/foo 連到 /tmp2 : 如果是照原po那樣的話 : 不可能成立的吧?? : 本來資料夾裡面已經有foo這個資料夾的話 : 不能再用foo來當link name阿 : 會出現 file exsits不是嗎?? 並不是 /tmp/foo 是指向 /tmp2 因此當你打 /tmp/foo/bar/FB 系統會幫你解析成 /tmp2/bar/FB : : >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
文章代碼(AID): #12McUnKn (b92902xxx)
討論串 (同標題文章)
文章代碼(AID): #12McUnKn (b92902xxx)