mirror of
https://github.com/DoctorWkt/unix-jun72.git
synced 2026-04-27 04:36:38 +00:00
- added a patch to make shell functional, but not completely like the
s2 shell.
This commit is contained in:
20
patches/core/shell.patch
Normal file
20
patches/core/shell.patch
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user