From owner-cvs-all Thu Jul 18 21:39: 5 2002 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0503637B400; Thu, 18 Jul 2002 21:38:56 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FC5043E64; Thu, 18 Jul 2002 21:38:55 -0700 (PDT) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6J4ctJU042398; Thu, 18 Jul 2002 21:38:55 -0700 (PDT) (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6J4ctkf042397; Thu, 18 Jul 2002 21:38:55 -0700 (PDT) Message-Id: <200207190438.g6J4ctkf042397@freefall.freebsd.org> From: "Tim J. Robbins" Date: Thu, 18 Jul 2002 21:38:55 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh alias.c alias.h arith.h arith.y arith_lex.l cd.c cd.h error.c error.h eval.c eval.h exec.c exec.h expand.c expand.h histedit.c init.h input.c input.h jobs.c jobs.h mail.c mail.h main.c main.h memalloc.c memalloc.h miscbltin.c mkbuiltins ... X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG tjr 2002/07/18 21:38:55 PDT Modified files: (Branch: RELENG_4) bin/sh alias.c alias.h arith.h arith.y arith_lex.l cd.c cd.h error.c error.h eval.c eval.h exec.c exec.h expand.c expand.h histedit.c init.h input.c input.h jobs.c jobs.h mail.c mail.h main.c main.h memalloc.c memalloc.h miscbltin.c mkbuiltins mkinit.c mknodes.c mksyntax.c mktokens myhistedit.h mystring.c mystring.h nodes.c.pat nodetypes options.c options.h output.c output.h parser.c parser.h redir.c redir.h sh.1 shell.h show.c show.h trap.c trap.h var.c var.h bin/sh/bltin bltin.h echo.1 echo.c Log: Sync with HEAD, except that printf(1) is still a shell builtin and old libedit history interface is still used. This gives the following new features/bug fixes: - Quote output of alias, export, readonly builtins - -L (logical) and -P (physical) options added to cd and pwd, logical behaviour made default. - -C (noclobber) option and >>| redirection is implemented - hash builtin only shows normal commands, no functions or builtins - -u (nounset) option is implemented - fc builtin's -e option works correctly again - No longer assumes there is a tty on fd 2 (PR 36671) - fg/bg command show more info about job being manipulated - -l and -s options added to jobs builtin, output closer to POSIX spec. - %+ (current job) %- (previous job) and %? (substring) job ID's implemented - >&- (and similar) redirection operators close descriptors correctly - set +o output corrected - Style: __FBSDID, __P removal, ANSI-style function declarations Revision Changes Path 1.12.2.2 +25 -27 src/bin/sh/alias.c 1.6.2.1 +4 -4 src/bin/sh/alias.h 1.5.2.1 +2 -2 src/bin/sh/arith.h 1.10.2.2 +9 -16 src/bin/sh/arith.y 1.14.2.2 +3 -4 src/bin/sh/arith_lex.l 1.10.2.2 +1 -6 src/bin/sh/bltin/bltin.h 1.7.2.4 +0 -0 src/bin/sh/bltin/echo.1 1.9.2.2 +2 -4 src/bin/sh/bltin/echo.c 1.20.2.2 +112 -47 src/bin/sh/cd.c 1.5.2.1 +3 -3 src/bin/sh/cd.h 1.15.2.3 +11 -45 src/bin/sh/error.c 1.11.2.3 +6 -6 src/bin/sh/error.h 1.27.2.4 +30 -60 src/bin/sh/eval.c 1.7.2.1 +10 -10 src/bin/sh/eval.h 1.14.2.3 +37 -81 src/bin/sh/exec.c 1.9.2.1 +15 -15 src/bin/sh/exec.h 1.31.2.4 +68 -105 src/bin/sh/expand.c 1.9.2.1 +6 -6 src/bin/sh/expand.h 1.13.2.3 +11 -19 src/bin/sh/histedit.c 1.6.2.1 +3 -3 src/bin/sh/init.h 1.14.2.1 +25 -30 src/bin/sh/input.c 1.7.2.1 +12 -12 src/bin/sh/input.h 1.27.2.5 +319 -186 src/bin/sh/jobs.c 1.12.2.1 +14 -12 src/bin/sh/jobs.h 1.9.2.2 +3 -4 src/bin/sh/mail.c 1.6.2.1 +1 -1 src/bin/sh/mail.h 1.18.2.3 +13 -35 src/bin/sh/main.c 1.6.2.1 +4 -4 src/bin/sh/main.h 1.15.2.2 +15 -26 src/bin/sh/memalloc.c 1.6.2.2 +13 -13 src/bin/sh/memalloc.h 1.22.2.3 +7 -13 src/bin/sh/miscbltin.c 1.8.2.2 +2 -1 src/bin/sh/mkbuiltins 1.14.2.1 +41 -63 src/bin/sh/mkinit.c 1.11.2.3 +24 -55 src/bin/sh/mknodes.c 1.14.2.3 +15 -20 src/bin/sh/mksyntax.c 1.6.2.2 +3 -3 src/bin/sh/mktokens 1.7.2.1 +5 -5 src/bin/sh/myhistedit.h 1.10.2.1 +10 -18 src/bin/sh/mystring.c 1.6.2.1 +4 -4 src/bin/sh/mystring.h 1.7.2.1 +12 -19 src/bin/sh/nodes.c.pat 1.6.2.2 +2 -1 src/bin/sh/nodetypes 1.15.2.2 +45 -51 src/bin/sh/options.c 1.9.2.2 +10 -10 src/bin/sh/options.h 1.10.2.2 +66 -147 src/bin/sh/output.c 1.8.2.2 +18 -20 src/bin/sh/output.h 1.29.2.6 +58 -63 src/bin/sh/parser.c 1.8.2.1 +4 -4 src/bin/sh/parser.h 1.12.2.3 +30 -22 src/bin/sh/redir.c 1.7.2.1 +5 -5 src/bin/sh/redir.h 1.39.2.17 +124 -149 src/bin/sh/sh.1 1.11.2.2 +1 -11 src/bin/sh/shell.h 1.11.2.3 +24 -53 src/bin/sh/show.c 1.7.2.3 +7 -7 src/bin/sh/show.h 1.20.2.1 +14 -24 src/bin/sh/trap.c 1.9.2.1 +8 -8 src/bin/sh/trap.h 1.15.2.1 +83 -62 src/bin/sh/var.c 1.8.2.1 +19 -18 src/bin/sh/var.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message