OS_GBPB works! Testing using CLibrary with 'sed'

by gerph
macOS ◆ xterm-256color ◆ fish 854 views

The sed tool is a C program that reads from a file, transforms the output, and writes out to a file or to the screen. Therefore it uses the file I/O operations, and it does so through the known C library functions that operate properly with the RISC OS APIs.

The command here isn’t at all special - it just replaces an ‘e’ with a ‘y’ in the word ‘hello’, which was in a file. However, this is demonstrating that C programs are - in the most basic way - able to work with file I/O now.

This was the first test of the OS_GBPB outside of the test suite code.