English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 25 November 2020, 00:46   #1
palaste
Registered User
 
Join Date: Oct 2011
Location: Helsinki, Finland
Posts: 74
Running AmigaOS 3.1.4 shell on vamos

As I recently mentioned, I went out and bought AmigaOS 3.1.4 from Hyperion Entertainment (https://www.hyperion-entertainment.com/index.php). It was the first commercial software I have bought in several years.


Now when I unpacked the Modules disk ADF file (it was pretty easy to do, as Linux treats ADF files as disk images of type affs) and copied L/Shell-Seg to my native Linux file system and ran "vamos -x Shell-Seg", I got dropped to an emulated Amiga shell displaying a 0.SYS> prompt. As I had wanted all along, this was running in an emulated Amiga, but was actually output in a Linux terminal.


Typing "dir", "list", or "cd" worked perfectly. Typing "echo hello" crashed vamos. Typing "avail" also worked perfectly, whereas typing "%" (% is my own program, it works like avail but also prints out the available memory as a percentage of the total memory) worked, but when the program exited, the shell just stuck there. I had to press Ctrl-C to kill the entire vamos process.


So I have two questions:
  1. Why is echo not working when most of the other shell commands are?
  2. Why did the shell just stick there after finishing %? The program has an ISO standard C main() function, which lacks an explicit return, but the ISO standard says that in main(), a missing return is taken as return 0.
Also, typing "vamos %" to run % directly instead of using a shell works, with vamos returning immediately after running % instead of just hanging.
palaste is offline  
Old 25 November 2020, 07:29   #2
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,215
Probably because you are using the wrong branch of vamos? Mine works. As for your program, I cannot tell.
Thomas Richter is offline  
Old 26 November 2020, 00:38   #3
palaste
Registered User
 
Join Date: Oct 2011
Location: Helsinki, Finland
Posts: 74
Quote:
Originally Posted by Thomas Richter View Post
Probably because you are using the wrong branch of vamos? Mine works. As for your program, I cannot tell.
I know you have your own branch of vamos. I just can't get it to work, because your branch uses Python 2.7 when the latest release is Python 3.8. I'm currently trying to get your version to work. At least using Hyperion Entertainment's new Shell-Seg got me somewhere, the previous ones I had crashed as soon as I started vamos.
palaste is offline  
Old 26 November 2020, 08:35   #4
Locutus
Registered User
 
Join Date: Jul 2014
Location: Finland
Posts: 1,176
Where is Thomas' branch of vamos? The amitools repo just has master and (ancient) dev branches.

It's not linked as a fork on the main amitools github and i cant find it elsewhere.

Also, Python 2.7 in 2020 is....absurd.
Locutus is offline  
Old 26 November 2020, 10:09   #5
Wepl
Moderator
 
Wepl's Avatar
 
Join Date: Nov 2001
Location: Germany
Posts: 866
Thomas's fork is here https://github.com/thorfdbg/amitools
Would be nice to have his changes in master.
They have diverged a lot: This branch is 42 commits ahead, 602 commits behind cnvogelg:master.
Wepl is offline  
Old 26 November 2020, 10:37   #6
Thomas Richter
Registered User
 
Join Date: Jan 2019
Location: Germany
Posts: 3,215
Quote:
Originally Posted by Locutus View Post
Also, Python 2.7 in 2020 is....absurd.

Incompatible language changes are absurd, but let it be as it is: This is open source, I would be happy if you would port this to Pyhton 3. It shouldn't be hard and there should not be much that need to be changed.
Thomas Richter is offline  
Old 26 November 2020, 11:19   #7
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
I could do this port. It's not as easy as putting parentheses around print statements but I've ported a s*load of 2.5 code to 3.8 without issues.

Quote:
Incompatible language changes are absurd
no, python 2 was sticking too much to C style and had issues that needed removed (range as lists, unicode vs str, division behaviour to name a few). Python 3 design is way better, and that broke compatibility partially, but it was a wise move.
jotd 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
Clear background color for Shell window- Shell-StartUp fc.studio support.Apps 13 25 March 2022 18:52
Unable to compile shell program on AmigaOS palaste support.Apps 1 22 November 2020 09:31
FS: Laptops and consoles running AmigaOS fstltna MarketPlace 0 14 September 2017 03:54
Running AmigaOS final (winUAE) in 1920x1080? onkelarie Amiga scene 3 30 March 2016 11:34
Amitools / vamos project copse Coders. General 4 01 January 2014 20:59

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 21:13.

Top

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