Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: FuzzyNormal on July 04, 2024, 11:50:48 PM

Title: Wrong Number of Arguments
Post by: FuzzyNormal on July 04, 2024, 11:50:48 PM
Forgive me, it's been years since I've tried to do any maintenance on this machine, but what does the notification "Wrong Number of Arguments" mean when booting up an Amiga?

I'm assuming it doesn't know the relationship I have with my wife so that can't be it.

Title: Re: Wrong Number of Arguments
Post by: kolla on July 05, 2024, 01:22:17 AM
Some program that is attempted started from s:startup-sequence (or s:user-startup) is given too few or too many arguments. I would boot without startup-sequence, type “set echo on” and “execute s:startup-sequence” to see what causes it.
Title: Re: Wrong Number of Arguments
Post by: zipper on July 05, 2024, 10:05:56 AM
Or, probably from 3.9 and later:
One particular "nice" feature makes up today's "Shell Hack": Interactive debugging, and tracing of shell scripts. Tracing means that the shell shows you which command it is about to execute, and you may run the command, skip over it or stop tracing.

To enable tracing, use the following command in the shell:

set interactive on

If this is put top in a shell script, for example into the startup-sequence (with an editor of your choice), the shell will prompt you for each command it is going to be executed. If you press RETURN, the shell will run the command. If you press N or DEL, the shell will skip over it. If you press ESC, the shell will abort tracing and execute the rest of the script without bothering you further. If you press Control+D, the script will be aborted.