diff options
author | Will Andrews <will@FreeBSD.org> | 2000-12-30 01:31:08 +0000 |
---|---|---|
committer | Will Andrews <will@FreeBSD.org> | 2000-12-30 01:31:08 +0000 |
commit | 0f61d2fb57283c281f3242a3b470b5b445cac325 (patch) | |
tree | 0101fdd321d6c16df014aaec0e39f09e69144b82 /shells/osh/files | |
parent | Update to knu-cvsweb 1.104.1.52. (diff) |
Add osh 001127, a reimplementation of the old and obsolete shell version
that was in standard use up to UNIX 6th Edition and was supplied as osh
with UNIX 7th Edition. Its command language is a sparse subset of those
of modern shells and is mostly common to both sh(1) and csh(1).
PR: 23943
Submitted by: George Reid <greid@ukug.uk.freebsd.org>
Notes
Notes:
svn path=/head/; revision=36449
Diffstat (limited to 'shells/osh/files')
-rw-r--r-- | shells/osh/files/patch-aa | 21 | ||||
-rw-r--r-- | shells/osh/files/patch-ab | 28 |
2 files changed, 49 insertions, 0 deletions
diff --git a/shells/osh/files/patch-aa b/shells/osh/files/patch-aa new file mode 100644 index 000000000000..e3678c333e48 --- /dev/null +++ b/shells/osh/files/patch-aa @@ -0,0 +1,21 @@ +--- makefile.orig Mon Nov 27 19:32:14 2000 ++++ makefile Fri Dec 29 15:31:35 2000 +@@ -7,11 +7,10 @@ + #CPPFLAGS = + #LDFLAGS = + #LIBS = -lefence +-PREFIX = /usr/local + BINDIR = $(PREFIX)/bin + MANDIR = $(PREFIX)/man + MANSECT = $(MANDIR)/man1 +-INSTALL = /usr/ucb/install ++INSTALL = /usr/bin/install + + # CONFIGURATION ENDS + +@@ -41,4 +40,4 @@ + install: + $(MAKE) + $(INSTALL) -c -s $(EXE) $(BINDIR) +- $(INSTALL) -c -m 644 $(MAN) $(MANSECT) ++ $(INSTALL) -c -m 444 $(MAN) $(MANSECT) diff --git a/shells/osh/files/patch-ab b/shells/osh/files/patch-ab new file mode 100644 index 000000000000..ef856e14789f --- /dev/null +++ b/shells/osh/files/patch-ab @@ -0,0 +1,28 @@ +--- osh.c.orig Fri Dec 29 15:38:16 2000 ++++ osh.c Fri Dec 29 15:38:32 2000 +@@ -494,9 +494,9 @@ + if (input != stdin) + fclose(input); + #endif +- sigset(SIGINT, SIG_DFL); +- sigset(SIGQUIT, SIG_DFL); +- sigset(SIGTERM, SIG_DFL); ++ signal(SIGINT, SIG_DFL); ++ signal(SIGQUIT, SIG_DFL); ++ signal(SIGTERM, SIG_DFL); + if (flags & FL_ASYNC) + setpgid(0, 0); + /* try current directory first */ +@@ -779,9 +779,9 @@ + if (isatty(0)) { + interactive = 1; + setpgid(0, 0); +- sigset(SIGINT, SIG_IGN); +- sigset(SIGQUIT, SIG_IGN); +- sigset(SIGTERM, SIG_IGN); ++ signal(SIGINT, SIG_IGN); ++ signal(SIGQUIT, SIG_IGN); ++ signal(SIGTERM, SIG_IGN); + } + } else { + fclose(stdin); /* the external goto command needs this */ |