- 
                Notifications
    
You must be signed in to change notification settings  - Fork 54
 
Closed
Labels
Program: lsThe ls programThe ls programStatus: verifiedissue has been verified (is reproducible)issue has been verified (is reproducible)Type: bugan existing feature does not workan existing feature does not work
Description
- In long-listing mode (-l), the ls command prints the file mode as the first element on each line
 - I created a symlink AP which refers to the file "apply"
 - The GNU version prints "l" prefix on the file mode string but the perl version prints '-'
 - The standards document says the 1st character of the mode-string is the entry-type, and for a symbolic link the entry-type should be "l" ("-" should be printed only for regular files) [1]
 - I also verified that the OpenBSD and Sortix versions of ls print the "l" entry-type
 
%readlink AP
apply
%ls -l AP # GNU
lrwxrwxrwx 1 x x 5 Mar 14 10:42 AP -> apply
%perl ls -l AP
-rwxr-xr-x   1 x       x            4488 Jan 19 14:25 AP
Metadata
Metadata
Assignees
Labels
Program: lsThe ls programThe ls programStatus: verifiedissue has been verified (is reproducible)issue has been verified (is reproducible)Type: bugan existing feature does not workan existing feature does not work