From ff378c41df0d0d47879fe4c279a0a52f7121238e Mon Sep 17 00:00:00 2001 From: "tim.newsham" Date: Sat, 17 May 2008 01:58:53 +0000 Subject: [PATCH] - added a patch to make shell functional, but not completely like the s2 shell. --- patches/core/shell.patch | 20 ++++++++++++++++++++ patches/notes.txt | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 patches/core/shell.patch diff --git a/patches/core/shell.patch b/patches/core/shell.patch new file mode 100644 index 0000000..284d7f9 --- /dev/null +++ b/patches/core/shell.patch @@ -0,0 +1,20 @@ +--- build/sh.clean 2008-05-11 10:41:44.000000000 -1000 ++++ build/sh.s 2008-05-11 10:42:49.000000000 -1000 +@@ -142,6 +146,8 @@ + inc r5 / inc r5 to point to return + bic $1,r5 / make it even + clr r0 / set for input ++ rts r5 ++ + sys seek; 0; 2 / exit from runcom. skip to end of + / input file + chcom: / has no effect if tty input +@@ -257,6 +255,8 @@ + beq 1f / yes + cmp r0,$'? / is it ? + beq 3f ++ cmp r0,$'* / is it * ++ beq 3f + cmp r0,$'[ / is it beginning of character string + / (for glob) + bne 2f diff --git a/patches/notes.txt b/patches/notes.txt index 7d6eed4..1ee4031 100644 --- a/patches/notes.txt +++ b/patches/notes.txt @@ -48,6 +48,12 @@ v2_as.patch Defines mount as _mount, gtty as _gtty, so that these symbols will not conflict with the pre-defined symbols in the V2 assembler. +shell.patch + A patch to the jun72 sh.s that adds back what appears to be a + missing "rts" and also allows "*" to be used for globbing. It + appears these lines got dropped from the listing somehow but were + part of the shell. + shell-s2.patch A patch to the jun72 sh.s sources to make it build an identical shell as the s2 /bin/sh (different only in the padding bytes).