[Info-vax] Command Line Versus Command Line
chrisq
devzero at nospam.com
Fri May 24 07:38:01 EDT 2024
On 5/23/24 20:38, Michael S wrote:
<snipped>
>
> Moving pointers between address spaces is never very simple. Moving
> variable-length arrays of pointers adds another level of complexity on
> top of it.
> Not a rocket science, but not as simple as copying a single monolithic
> string.
>
Perhaps, but from a programmers point of view, the elegance of the shell
command line method is that on entry to main(), both the arg count and
args are separated and ready to verify and use. All the background
legwork is done for you.
If you just hand the whole command line to a program, you have to
parse and separate the args, for every program you write, very bug
prone and added effort. Whole idea of good system design is to free
the programmer from repetition, and mundane stuff that the system
should deal with...
Chris
More information about the Info-vax
mailing list