English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 10 November 2004, 02:09   #1
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
c:list

hi any one know how to make this comman list the files in alphabetical order?
ie like 'ls -la'

list #? all

just dumps everying thing in no particular order :/
redblade is offline  
Old 10 November 2004, 04:54   #2
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
I'm 99% sure that there is no other way than either using a replacement tool, or than writing a small script, like this, for instance:

===
WORKAROUND:
===
Code:
.key arg
.bra {
.ket }
run >nil: list >PIPE:tmp{$$} {arg} nohead
sort PIPE:tmp{$$} to *
The above is for bog-standard OS 2.x/3.x and meant to be a workaround. A perfect solution is below!
But at least it also works on any OS >= 2.04+
Save it to a name of your choice (eg 'listit') and apply the script (s) bit so that it gets executed without 'execute':

Code:
protect listit s add
NOTE: this script still supports all list commands, so listit #?.lha will list all LHA archives!

This usenet post may also come in handy, unfortunately though, the mentioned List42_7 has been withdrawn from Aminet.

===
REAL SOLUTION:
===

Consider that the pipe handler shipped with OS 2.x/3.0/3.1 is not able to correctly pipe between commands, hence it may be regarded as 'partly broken'!
- Get working PIPE from Aminet (by Osma Ahvenlampi).
- Copy pipe to C:
- Make two S:shell-startup modifications as described in the docs of the new pipe handler (inside the *.lha) and reboot the Amiga.

And now do this simple line henceforth:

Code:
list #? | sort in: out:
WORKS!
You may as well try this on bog-standard OS 2.04 or 3.0/3.1 - it will NOT work! (Guaranteed! )

Last edited by andreas; 19 December 2004 at 09:44.
andreas is offline  
Old 10 November 2004, 11:04   #3
thomas
Registered User
 
thomas's Avatar
 
Join Date: Jan 2002
Location: Germany
Posts: 6,985
With OS3.5 or better you can enter

list all sort n
thomas is offline  
Old 12 November 2004, 03:51   #4
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
I know.
3.5 has fixes awaited by Amigans for YEARS.
(This functionality had already been available in old MS-DOS from about 1988, so no wonder this had provided a lot of fodder for PeeCee-Amiga-battles back then)

Last edited by andreas; 12 November 2004 at 04:03.
andreas is offline  
Old 12 November 2004, 03:58   #5
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
hmm you would of thought that they would have put in a feature to list the files by name.
redblade is offline  
Old 12 November 2004, 04:01   #6
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Hey, there you are! Have you ever tried my solutions above?
andreas is offline  
Old 12 November 2004, 09:25   #7
mtb
Registered User
 
Join Date: Sep 2002
Location: Italy
Age: 40
Posts: 466
Quote:
Originally Posted by redblade
hi any one know how to make this comman list the files in alphabetical order?
ie like 'ls -la'

list #? all

just dumps everying thing in no particular order :/
If you use zshell ( aminet, freeware at least ) there is a better list command ( iirc it could sort ) and the shell itself is much faster.

Also i created aliases for unix like commands to avoid ls instead of list, delete instead of rm and so on.

I suggest you to give it a try
mtb is offline  
Old 12 November 2004, 10:39   #8
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
hmm i remember finding one shell in one of the asm_course.lha or asmcourse.lha from aminet and it had a ls function built in.

I might just find a list replacement :/. Or I may have to learn c and modify the commodore one =]

If you edit the Kickstart roms? can you use a standard burner to burn it back to a prom chip and slap her in your A1200? Or is this another topic?

sorry andreas. Your alternative idea is a good idea, a bit long tho. Looks like UNIX shell programming.

I have no idea what the .key and .bra in your scrip do, as my A600HD and A1200HD were 2nd hand I didn't receive the manuals so I really don't know how to fully utilise AmigaDOS from KS 2.0+

And also with your script do I edit s:shell-startup (or what ever its called) and call it.

"list #? la" alias newlistscript ;??

Last edited by redblade; 12 November 2004 at 23:42. Reason: apologising to andreas
redblade is offline  
Old 19 December 2004, 09:40   #9
andreas
Zone Friend
 
Join Date: Jun 2001
Location: Germany
Age: 50
Posts: 5,857
Send a message via ICQ to andreas Send a message via AIM to andreas
Well, then try the solution with the PIPE handler replacement.
This should do the job nicely.
Feel free to pester me with any questions if you're stuck anywhere.

(What a shame that a BROKEN pipe handler was shipped with the original workbenches! )

Third solution:
Meanwhile, I got List version 42.7 (that never made it into workbench and is now withdrawn from Aminet) thanks to Amiga Rob!
You could just try to overwrite the old List command by the new one, which is now able to do lots of nice things like sorting etc.
Gimme a shout if you missed the file on the zone.

Last edited by andreas; 19 December 2004 at 13:11.
andreas is offline  
Old 20 December 2004, 08:39   #10
redblade
Zone Friend
 
redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 40
Posts: 2,127
no I got the file thank you, it was a nice upload, although those other options with list 42.7 I think it was usergroups were rather interesting???.

Was the next amiga WB from commodore supposed to have networking built in?
redblade is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
List in alphabetical order in dropdown list of Floppy Drives Zed request.UAE Wishlist 1 06 February 2010 17:26
The Trade List Loedown MarketPlace 3 27 May 2009 12:50
X-List Ultron request.Apps 2 31 July 2006 19:05
List 42.x andreas request.Apps 6 14 November 2004 23:13
Vermillion's list VermillioN project.SPS (was CAPS) 20 27 May 2003 09:23

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:32.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11436 seconds with 13 queries