lsコマンドのソース(FreeBSD版)つづき_3
487 /* 488 * We ignore errors from fts_children here since they will be 489 * replicated and signalled on the next call to fts_read() below. 490 */ 491 chp = fts_children(ftsp, 0); 492 if (chp != NULL) 493 display(NULL, chp, options); 494 if (f_listdir) 495 return;
- lsのパラメータにふつうのファイルを指定したとき
- ls -d dirnameのとき
ここのdisplay関数呼び出しで結果出力処理が済んでしまう模様。display関数の中を踏まえた上で・・そう思われる・・。
引数のNULLで分岐されている。