作者ric2k1 (Ric)
看板EE_DSnP
標題[公告] "dofile" command 的測試範圍
時間Tue Apr 14 23:34:00 2009
關於 "dofile" 這個 command 的 support, 有鑒於兩個先天上的 limits:
1. MAX_HISTORY = 65536
2. In Linux systems, the number of file descriptors is limited to 1024.
That is, the maximum number of files we can open is 1024. You can see
this by the "limit" command. However, it seems that we canot increase
this limit over 1024.
以上兩個限制並不容易解決, 所以我們將限制我們關於 dofile 的測試於底下的
四個 dofiles (方括弧內為檔名, 以下為內容)
[do1]
help
[do2]
do do1
[do3]
help
do t <== t 這個檔案不存在
do do2
his
[do4]
do do4
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 75.36.183.234
1F:推 goodword:謝謝老師說明! 04/14 23:36
2F:→ goodword:[do2] 應該是do do1 ?? 04/14 23:38
※ 編輯: ric2k1 來自: 75.36.183.234 (04/14 23:39)
3F:→ ric2k1:是的, 已更正 04/14 23:39
4F:→ ric2k1:不好意思造成大家測試上的困擾, 也感謝那些點出問題的同學 04/14 23:40
5F:推 goodword:對了 是不是在 [do3]的最後再加 幾行指令來檢查pop() 04/15 00:06
6F:→ goodword:要不然以現在這樣 不做pop() 也會有一樣的結果 04/15 00:07
7F:→ ric2k1:OK. Let me update 04/15 00:18
※ 編輯: ric2k1 來自: 75.36.183.234 (04/15 00:18)