Date: Fri, 4 Feb 2011 22:47:55 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh TOUR alias.c alias.h error.h eval.c exec.c exec.h init.h input.c jobs.c main.c mkinit.c options.c redir.c sh.1 trap.c var.c Message-ID: <201102042248.p14MmGwY072400@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-02-04 22:47:55 UTC FreeBSD src repository Modified files: bin/sh TOUR alias.c alias.h error.h eval.c exec.c exec.h init.h input.c jobs.c main.c mkinit.c options.c redir.c sh.1 trap.c var.c Log: SVN rev 218306 on 2011-02-04 22:47:55Z by jilles sh: Remove special code for shell scripts without magic number. These are called "shell procedures" in the source. If execve() failed with [ENOEXEC], the shell would reinitialize itself and execute the program as a script. This requires a fair amount of code which is not frequently used (most scripts have a #! magic number). Therefore just execute a new instance of sh (_PATH_BSHELL) to run the script. Revision Changes Path 1.8 +1 -18 src/bin/sh/TOUR 1.30 +1 -9 src/bin/sh/alias.c 1.10 +0 -1 src/bin/sh/alias.h 1.21 +1 -2 src/bin/sh/error.h 1.100 +10 -18 src/bin/sh/eval.c 1.49 +6 -43 src/bin/sh/exec.c 1.21 +0 -1 src/bin/sh/exec.h 1.9 +0 -1 src/bin/sh/init.h 1.32 +1 -6 src/bin/sh/input.c 1.92 +0 -16 src/bin/sh/jobs.c 1.44 +2 -16 src/bin/sh/main.c 1.21 +0 -6 src/bin/sh/mkinit.c 1.33 +0 -15 src/bin/sh/options.c 1.34 +0 -4 src/bin/sh/redir.c 1.156 +4 -10 src/bin/sh/sh.1 1.45 +0 -16 src/bin/sh/trap.c 1.56 +1 -42 src/bin/sh/var.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102042248.p14MmGwY072400>