Agreed.  If --list is going to exclude broken symbolic links then it
should also exclude symbolic links to directories.

[EMAIL PROTECTED]:/tmp$ ls -l w
total 4
lrwxr-xr-x  1 jdthood jdthood 15 2005-02-13 12:05 bar -> /does/not/exist
lrwxr-xr-x  1 jdthood jdthood  1 2005-02-13 12:03 foo -> .
-rw-r--r--  1 jdthood jdthood 24 2005-02-13 12:03 s
[EMAIL PROTECTED]:/tmp$ run-parts --list w
w/foo
w/s


Note that --test also lists symbolic links to directories.


[EMAIL PROTECTED]:/tmp$ run-parts --test w
run-parts: component w/bar is a broken symbolic link
w/foo


Another problem is that run-parts's error output is on stdout.

[EMAIL PROTECTED]:/tmp$ run-parts --test w 2>/dev/null
run-parts: component w/bar is a broken symbolic link
w/foo

These tests were performed with debianutils 2.8.4.

-- 
Thomas Hood <[EMAIL PROTECTED]>



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to