From coff at tuhs.org  Thu Jan 16 15:14:10 2025
From: coff at tuhs.org (Warren Toomey via COFF)
Date: Thu, 16 Jan 2025 15:14:10 +1000
Subject: [COFF] Source for a vaguely Bourne-like shell, no signals
Message-ID: <Z4iVorw49RI8qHG5@minnie.tuhs.org>

Hi all, this is a pretty weird question to ask.

I've been extending the RISC-V version of xv6 to have a decent libc and
some userland programs: https://github.com/DoctorWkt/xv6-riscv-fuzix

There's a minimalist shell and my own 'wish' shell; neither have any
scripting capability. Also, as it stands there are no signals implemented.

I'd love a Bourne-ish shell to write shell scripts, but I've had a hard
time finding one that I can snip out the signal handling code.

If you have any suggestions, please met me know!

Thanks, Warren

From coff at tuhs.org  Thu Jan 16 15:38:38 2025
From: coff at tuhs.org (Warren Toomey via COFF)
Date: Thu, 16 Jan 2025 15:38:38 +1000
Subject: [COFF] Source for a vaguely Bourne-like shell, no signals
In-Reply-To: <Z4iVorw49RI8qHG5@minnie.tuhs.org>
References: <Z4iVorw49RI8qHG5@minnie.tuhs.org>
Message-ID: <Z4ibXrD6pm6xeij/@minnie.tuhs.org>

On Thu, Jan 16, 2025 at 03:14:10PM +1000, Warren Toomey via COFF wrote:
> I'd love a Bourne-ish shell to write shell scripts, but I've had a hard
> time finding one that I can snip out the signal handling code.

Dang. I'd forgotten that I already did this when xv6 ran on the x86 platform:
https://github.com/DoctorWkt/xv6-freebsd/tree/master/cmd/sh

I've just got it to run on the RISC-V version of xv6.

Sorry for the noise, all.
	Warren

