Problems with List command
Posted: Sun Feb 19, 2012 12:19 pm
During my journey to solve a Link/Assign problem herehttp://forum.hyperion-entertainment.biz ... 8&start=10, I stumbled upon two small bugs(?) of the LIST command:
Glitch Nr. 1: List does not list files in dirs with round brackets and quits with an error.
C:List (53.1) seems to have problems with round brackets. I know round brackets are special characters which
should not be in AmigaDOS filenames, but nowadays files from other systems happen to be copied over.
For example the game "Lugaru" has some drawers with round brackets, renaming them will prevent lugaru from
working properly. Another App using round brackets is AMC (Amiga Media Centre).
eg:
- Make a new dir in RAM:
- rename it to "Rename_Me(hh)"
- then type in the following in a shell:
list ram: all
One of the appearing text lines will tell you:
LIST: No information for "RAM:Rename_Me(hh)
LIST: object not found
Glitch Nr. 2: The option LIST LFORMAT "%R" does not always work. (or is it maybe supposed to work like this?):
This is the Output of a shell:
11.AmigaOS:>CD SYS:SObjs/
11.AmigaOS:SObjs>LIST libpng.so LFORMAT "%F%N"
AmigaOS:SObjs/libpng.so
11.AmigaOS:SObjs>LIST libpng.so LFORMAT "%F%N %R"
AmigaOS:SObjs/libpng.so
11.AmigaOS:SObjs>LIST SOBJS: LFORMAT "%F%N %R"
----snip----
AmigaOS:SObjs/libpng.so SYS:sobjs/libpng12.so
----snip----
As you can see, the links are shown only if a directory is listed, but not if I list only one file.
Let's say you have to search for orphaned links. It is annoying if you do something like this:
>LIST work: ALL >RAM:testlist.txt
since it fails and quits as soon as some directory with the mentioned pattern appears.
I also noticed, only Softlinks show the path to the file they are linked to, hardlinks are not highlighted.
Mmmh.. thinking about it, it might make sense, as it is "just a node pointing to the same data", right?
Further I will quote Xenic and tonyw (hope you don't mind, and thanx for helping me out with the other issue
, they contributed with comments which seem noteworthy:
Glitch Nr. 1: List does not list files in dirs with round brackets and quits with an error.
C:List (53.1) seems to have problems with round brackets. I know round brackets are special characters which
should not be in AmigaDOS filenames, but nowadays files from other systems happen to be copied over.
For example the game "Lugaru" has some drawers with round brackets, renaming them will prevent lugaru from
working properly. Another App using round brackets is AMC (Amiga Media Centre).
eg:
- Make a new dir in RAM:
- rename it to "Rename_Me(hh)"
- then type in the following in a shell:
list ram: all
One of the appearing text lines will tell you:
LIST: No information for "RAM:Rename_Me(hh)
LIST: object not found
Glitch Nr. 2: The option LIST LFORMAT "%R" does not always work. (or is it maybe supposed to work like this?):
This is the Output of a shell:
11.AmigaOS:>CD SYS:SObjs/
11.AmigaOS:SObjs>LIST libpng.so LFORMAT "%F%N"
AmigaOS:SObjs/libpng.so
11.AmigaOS:SObjs>LIST libpng.so LFORMAT "%F%N %R"
AmigaOS:SObjs/libpng.so
11.AmigaOS:SObjs>LIST SOBJS: LFORMAT "%F%N %R"
----snip----
AmigaOS:SObjs/libpng.so SYS:sobjs/libpng12.so
----snip----
As you can see, the links are shown only if a directory is listed, but not if I list only one file.
Let's say you have to search for orphaned links. It is annoying if you do something like this:
>LIST work: ALL >RAM:testlist.txt
since it fails and quits as soon as some directory with the mentioned pattern appears.
I also noticed, only Softlinks show the path to the file they are linked to, hardlinks are not highlighted.
Mmmh.. thinking about it, it might make sense, as it is "just a node pointing to the same data", right?
Further I will quote Xenic and tonyw (hope you don't mind, and thanx for helping me out with the other issue

Xenic wrote:
It's not just a problem with the LFORMAT %R option. The list command doesn't show the link if you list the file using the exact filename like "list libpng.so". If you throw a wildcard into the filename like "list libpng.s?" then the link is shown. This seems like a bug to me and should probably be reported.
tonyw wrote
This has gone off topic and deserves a new thread. However, I don't think it's a "List" or "Dir" or "Delete" problem - it looks more like a general DOS parsing problem.