¿ªÔÆÌåÓý

Re: GCC EXEC on S-disk, but Not On Any Other Minidisk? #VMCE


 

On Thu, Dec 9, 2021 at 02:43 PM, Dave Wade wrote:
Ok they appear to work, but I can remember how to re-direct stdout (duh?). You need to use dotted file names so

type hello c

#include <stdio.h>
int main(int argc, char * argv[]) {
printf("Good morning... from HELLO!\n");
}

Ready; T=0.01/0.01 15:41:49

type hella c

#include <stdio.h>
int main(int argc, char * argv[]) {
printf("Good afternoon. from HELLO!\n");
}

Ready; T=0.01/0.01 15:42:02

diff hello.c hella.c
3c3
< printf("Good morning... from HELLO!\n");
---
printf("Good afternoon. from HELLO!\n");
Ready(00001); T=0.01/0.03 15:39:46

Dave
The diff program seems to be a complete unix port. By just typing 'diff --help' it dumps the help, just like it does on *nix.

diff --help
Usage: diff [OPTION]... FILES
Compare files line by line.
?
? -i? --ignore-case? Ignore case differences in file contents.
...


Patch is expecting filenames rather than file redirection. I've worked with this stuff before. Just have to remember how.

patch --help
Usage: patch [OPTION]... [ORIGFILE [PATCHFILE]]
?
Input options:
?
? -p NUM? --strip=NUM? Strip NUM leading components from file names.
...

Join [email protected] to automatically receive all group messages.