English Amiga Board Amiga Lore


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 23 December 2012, 13:42   #1
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
Open source CLI commands

Just saw the warning about not uploading "workbench disks" in the downloads section and thought, what about an Open Source workbench disk? And I was thinking about what things it would need to have on it.

So we're rewriting all the libraries as open source ASM now, but how about the CLI commands in the workbench disk C directory? We need open source versions of these as well, surely, and they should be quite easy to do. Furthermore I suspect they should make for MUCH smaller files.

I can have a go on some of these myself. I got Mr Beanbag to read a directory listing the other day, so maybe I'll start with "dir".
Mrs Beanbag is offline  
AdSense AdSense  
Old 24 December 2012, 13:46   #2
mark_k
Registered User
 
Join Date: Aug 2004
Location:
Posts: 2,515
Back in the day there was ARP, the AmigaDOS Replacement Project (or AmigaDOS Resource Project). See http://aminet.net/package/misc/antiq/ARP_13 and http://aminet.net/package/dev/misc/ARP_13dev.

ARP was originally intended to replace the BCPL DOS commands of Workbench 1.x with equivalents written in C. So if you were just looking to replace the Commodore commands on boot disks you could look into using the ARP versions. Sadly ARP was never open source though. (Anyone know how to contact one of the former ARP developers? It would be interesting to get hold of the ARP source.)

At one point, some people believed that even distributing a bootable disk, made bootable with the C:Install command, was not allowed due to the tiny amount of code in the bootblock. So there were at least a couple of Install replacements which wrote slightly different code to the bootblock.

Anyway... today there are also the AROS commands which are open source. I haven't tried running any of the AROS M68K commands in AmigaDOS but they should probably work. (But only for Kickstart 2.0 or later.)
mark_k is offline  
Old 24 December 2012, 14:12   #3
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 49
Posts: 915
Good idea, but if you want something hardest to do, you can try to rework intuition library, or something easiest like layers library or gadtools library. I can give/send to you resourced versions, if you want.
Don_Adan is offline  
Old 24 December 2012, 14:18   #4
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
I don't want something hard or I will never bother doing it. I'm terribly unmotivated.

Actually I'd like to write a posix style "ls" command that could be used instead of "dir", the AmigaDos commands have some weird syntax. What do you do, for instance, if you want to copy some files that are actually named "to" and "from" and "ALL"? Argh.
Mrs Beanbag is offline  
Old 24 December 2012, 14:53   #5
TCD
Global Moderator

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 39
Posts: 24,032
Quote:
Originally Posted by Mrs Beanbag View Post
What do you do, for instance, if you want to copy some files that are actually named "to" and "from" and "ALL"? Argh.
Haven't checked it, but I bet a 'COPY DH0:ALL DH1:' for example will work fine.
TCD is offline  
Old 24 December 2012, 15:01   #6
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
yeah that should work, it's more the possibility of doing things you don't want by accident that worries me. Generally seems a bit ambiguous.
Mrs Beanbag is offline  
Old 24 December 2012, 15:06   #7
TCD
Global Moderator

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 39
Posts: 24,032
Don't really see the problem as 'ALL' is a switch you provide after you specify source and destination. Anyway, if you want to provide replacements wouldn't that require to support the same syntax? Aminet has quite a few alternate commands already, so maybe worth to have a look there first.
TCD is offline  
Old 24 December 2012, 17:00   #8
hooverphonique
ex. demoscener "Bigmama"
 
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 693
one of my all-time favorite AmigaDOS commands is 'ls' which already exists and has since the 80's.. no idea if it's open sauce or where it may be downloaded from, however..

anyway, isn't it just a matter of using the AROS version of the C commands? As far as I know, they should be compilable on AmigaDOS..
hooverphonique is offline  
Old 24 December 2012, 18:10   #9
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 1,725
Yes, a lot of replacements (most with advanced features) are avilable (most on Aminet) and I use some of that. Also I don`t see a problem with the syntax.

But first what do you exactly mean with "Open Source workbench disk"? Code have to be the only difference? What version?
daxb is offline  
Old 24 December 2012, 20:27   #10
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
Version 5...

I suppose the real requirements are, a substitute for Workbench disks on classic, unexpanded Amigas, that aren't bound by copyright restrictions.

I don't look at Aminet as often as I ought.
Mrs Beanbag is offline  
Old 24 December 2012, 20:31   #11
TCD
Global Moderator

TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 39
Posts: 24,032
I got the impression that this is exactly what AROS 68k tries to do. Might be wrong about the project goals though, yet it surely is a starting point.
TCD is offline  
Old 24 December 2012, 21:06   #12
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
At 7.9M it's not going to fit on a boot floppy... but maybe I can do something with it. I should actually try this anyway, now you mention it.
Mrs Beanbag is offline  
Old 24 December 2012, 21:58   #13
Mrs Beanbag
Glastonbridge Software
Mrs Beanbag's Avatar
 
Join Date: Jan 2012
Location: Edinburgh/Scotland
Posts: 2,202
I see there are some AROS Shell commands yet to do:
http://aros.sourceforge.net/introduction/status/c.php

Ed... hmm, I was thinking of writing a text editor...
Also, LoadWB, pretty essential for a workbench disk.
Mrs Beanbag is offline  
Old 10 December 2016, 09:50   #14
redblade
Zone Friend

redblade's Avatar
 
Join Date: Mar 2004
Location: Middle Earth
Age: 33
Posts: 1,030
Any more news on this? On the FredFish disks there were a lot of source code made available to replacements. Assign, Display, Memacs, Perfmon were provided. Also there were some ports of vi with source if you want to code a text editor
redblade is offline  
AdSense AdSense  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open-source scsi device Don_Adan Coders. System 76 06 December 2015 00:50
Open-source graphics library Don_Adan Coders. System 32 15 January 2013 22:15
List your favourite cli/shell commands replacements. ppill request.Apps 4 10 December 2010 14:48
NewsRog goes Open Source Paul News 0 04 December 2004 16:37
BlitzBasic - Is now open source Djay Amiga scene 2 08 February 2003 01:09

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 06:22.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.17646 seconds with 12 queries