Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build script goes into loop on MacOS #4

Open
unbibium opened this issue Aug 1, 2021 · 1 comment
Open

build script goes into loop on MacOS #4

unbibium opened this issue Aug 1, 2021 · 1 comment

Comments

@unbibium
Copy link

unbibium commented Aug 1, 2021

When I run the build.sh, the steps for build1 seem to run into an uncontrolled loop where it gives the same two prompts over and over. When I run build.sh | head -20 to see how it starts, it does stop the assembler, but gives errors about missing files.

This may actually be a kernalemu bug.

Here's the first 20 lines of output:

splatty:cbmsrc nickb$ ./build.sh | head -20

CBM RESIDENT ASSEMBLER V080282
(C) 1982 BY COMMODORE BUSINESS MACHINES

OBJECT FILE (CR OR D:NAME): 

CBM RESIDENT ASSEMBLER V080282
(C) 1982 BY COMMODORE BUSINESS MACHINES

OBJECT FILE (CR OR D:NAME): 
HARD COPY (CR/Y OR N)? 
CROSS REFERENCE (CR/NO OR Y)?  
SOURCE FILE NAME? 
CROSS REFERENCE (CR/NO OR Y)?  
SOURCE FILE NAME? 
CROSS REFERENCE (CR/NO OR Y)?  
SOURCE FILE NAME? 
CROSS REFERENCE (CR/NO OR Y)?  
SOURCE FILE NAME? 
./build.sh: line 37: _tmp_obj: No such file or directory
mv: rename printer4.txt to ../MONITOR_AIM65.lst: No such file or directory

Results of uname -a:
Darwin splatty.local 18.7.0 Darwin Kernel Version 18.7.0: Mon May 3 20:41:19 PDT 2021; root:xnu-4903.278.68~1/RELEASE_X86_64 x86_64

@spiro-trikaliotis
Copy link
Contributor

This is because the echo command does not handle the backslash sequences. I had this very same issue.
It can be fixed by adding the "-e" option to the echo commands. It is included in commit 281ea10, which is part of PR #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants