Compare commits

...

2 Commits

Author SHA1 Message Date
Ryan Schmidt 7ac2a88974
Add newline after read() debug output (#44) 2022-11-15 19:01:21 -05:00
Ryan Schmidt 2703e00201
Use /bin/sh; quote shell variables (#46)
* On macOS, sh is /bin/sh not /usr/bin/sh

* Quote shell variables correctly
2022-11-15 19:00:16 -05:00
5 changed files with 7 additions and 7 deletions

View File

@ -90,9 +90,9 @@ or create a shell script (in `/usr/local/bin`, etc)
`/usr/local/bin/AsmIIgs`: `/usr/local/bin/AsmIIgs`:
#!/usr/bin/sh #!/bin/sh
exec mpw AsmIIgs $@ exec mpw AsmIIgs "$@"
mpw uses the MPW `$Commands` variable to find the command, similar to `$PATH` on Unix. If the `$Commands` variable mpw uses the MPW `$Commands` variable to find the command, similar to `$PATH` on Unix. If the `$Commands` variable

View File

@ -84,9 +84,9 @@ or create a shell script (in /usr/local/bin, etc)
/usr/local/bin/AsmIIgs: /usr/local/bin/AsmIIgs:
#!/usr/bin/sh #!/bin/sh
exec mpw AsmIIgs $@ exec mpw AsmIIgs "$@"
mpw looks in the current directory and then in the $MPW:Tools: directory mpw looks in the current directory and then in the $MPW:Tools: directory
for the command to run. The MPW $Commands variable is not yet supported. for the command to run. The MPW $Commands variable is not yet supported.

View File

@ -74,7 +74,7 @@ namespace MPW
int fd = f.cookie; int fd = f.cookie;
ssize_t size; ssize_t size;
Log(" read(%04x, %08x, %08x)", fd, f.buffer, f.count); Log(" read(%04x, %08x, %08x)\n", fd, f.buffer, f.count);
size = OS::Internal::FDEntry::read(fd, memoryPointer(f.buffer), f.count); size = OS::Internal::FDEntry::read(fd, memoryPointer(f.buffer), f.count);
//Log(" -> %ld\n", size); //Log(" -> %ld\n", size);

View File

@ -505,7 +505,7 @@ namespace ToolBox {
*/ */
Push<4>(returnPC == 0 ? cpuGetPC() : returnPC); Push<4>(returnPC == 0 ? cpuGetPC() : returnPC);
Log("$04x *%s - $%08x", trap, TrapName(trap), address); Log("$04x *%s - $%08x\n", trap, TrapName(trap), address);
cpuInitializeFromNewPC(address); cpuInitializeFromNewPC(address);
return; return;
} }

View File

@ -1,4 +1,4 @@
#!/usr/bin/sh #!/bin/sh
infile="$1" infile="$1"