History log of /freebsd/bin/sh/exec.c (Results 151 – 175 of 185)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 30268dfa 25-Jun-2009 Jilles Tjoelker <jilles@FreeBSD.org>

Designate special builtins as such in command -V and type.
Also document various properties of special builtins that we implement.

Approved by: ed (mentor) (implicit)


# 7e857dd1 12-Jun-2009 Oleksandr Tymoshenko <gonzo@FreeBSD.org>

- Merge from HEAD


# 35f2d3b6 01-Jun-2009 Ralf S. Engelschall <rse@FreeBSD.org>

align coding style with style(9) to avoid misunderstandings


# f7bbf3ff 28-Nov-2008 Stefan Farfeleder <stefanf@FreeBSD.org>

Report error messages of the builtins 'type' and 'command -V' to stderr instead
of stdout.

Noticed by: Zajcev Evgeny


Revision tags: release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0, release/6.3.0_cvs, release/6.3.0
# d92e35fd 18-Jan-2007 Stefan Farfeleder <stefanf@FreeBSD.org>

Use eaccess() instead of access() for the type builtin, like we do for the
test builtin.

Submitted by: Martin Kammerhofer


Revision tags: release/6.2.0_cvs, release/6.2.0
# f30842ba 11-Jan-2007 Stefan Farfeleder <stefanf@FreeBSD.org>

Return an error status (127) from the builtins 'type' and 'command' (with
either -v or -V) if a file with a slash in the name doesn't exist (if there is
no slash we already did that).

Additionally,

Return an error status (127) from the builtins 'type' and 'command' (with
either -v or -V) if a file with a slash in the name doesn't exist (if there is
no slash we already did that).

Additionally, suppress the error message for command -v for files with a slash.

PR: 107674
Submitted by: Martin Kammerhofer

show more ...


Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0
# 85170a4a 09-Apr-2006 Stefan Farfeleder <stefanf@FreeBSD.org>

Implement some of the differences between special built-ins and other builtins
demanded by POSIX.
- A redirection error is only fatal (meaning the execution of a shell script is
terminated) for spe

Implement some of the differences between special built-ins and other builtins
demanded by POSIX.
- A redirection error is only fatal (meaning the execution of a shell script is
terminated) for special built-ins. Previously it was fatal for all shell
builtins, causing problems like the one reported in PR 88845.
- Variable assignments remain in effect for special built-ins.
- Option or operand errors are only fatal for special built-ins.
This change also makes errors from 'fc' non-fatal (I could not find any reasons
for this behaviour).

Somewhat independently from the above down-grade the error handling in the
shift built-in if the operand is bigger than $# from an error() call (which is
now fatal) to a return 1. I'm not sure if this should be considered a POSIX
"operand error", however this change is needed for now as we trigger that error
while building libncurses. Comparing with other shells, zsh does the same as
our sh before this change (write a diagnostic, return 1), bash behaves as our
sh after this commit (no diagnostic, return 1) and ksh93 and NetBSD's sh treat
it as a fatal error.

show more ...


Revision tags: release/6.0.0_cvs, release/6.0.0
# b2f153fe 28-Oct-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

Add the POSIX options -v and -V to the 'command' builtin. Both describe the
type of their argument, if it is a shell function, an alias, a builtin, etc.
-V is more verbose than -v.

PR: 77259, 84539


# c7893739 13-Aug-2005 Stefan Farfeleder <stefanf@FreeBSD.org>

Use prototypes in the MKINIT lines collected by mkinit.


Revision tags: release/5.4.0_cvs, release/5.4.0, release/4.11.0_cvs, release/4.11.0, release/5.3.0_cvs, release/5.3.0
# bd766773 27-Sep-2004 Dag-Erling Smørgrav <des@FreeBSD.org>

Attempting to unset an undefined variable or function should not be
considered an error according to the Open Group Base Specification.

PR: standards/45738
Submitted by: Matthias Andree <matthias.a

Attempting to unset an undefined variable or function should not be
considered an error according to the Open Group Base Specification.

PR: standards/45738
Submitted by: Matthias Andree <matthias.andree@web.de>
MFC after: 3 days

show more ...


Revision tags: release/4.10.0_cvs, release/4.10.0
# 6195fb41 06-Apr-2004 Mark Murray <markm@FreeBSD.org>

Remove clause 3 from the UCB licenses.

OK'ed by: imp, core


Revision tags: release/5.2.1_cvs, release/5.2.1, release/5.2.0_cvs, release/5.2.0, release/4.9.0_cvs, release/4.9.0
# 2ba1b30b 05-Jul-2003 Diomidis Spinellis <dds@FreeBSD.org>

Changes following CScout analysis:

- Removed dead declarations
- Made objects that should have been declared as static, static.

The changes use STATIC instead of static, following the existing
conv

Changes following CScout analysis:

- Removed dead declarations
- Made objects that should have been declared as static, static.

The changes use STATIC instead of static, following the existing
convention in the rest of the code.

Approved by: schweikh (mentor)
MFC after: 2 weeks

show more ...


Revision tags: release/5.1.0_cvs, release/5.1.0, release/4.8.0_cvs, release/4.8.0, release/5.0.0_cvs, release/5.0.0, release/4.7.0_cvs
# 8c395729 01-Oct-2002 Tim J. Robbins <tjr@FreeBSD.org>

Restore "not found" error message when searching for (or executing)
a program fails because the file or a path component does not exist.

Suggested by: bde


# 1c59560d 29-Sep-2002 Tim J. Robbins <tjr@FreeBSD.org>

Convert the remaining callers of errmsg() to use strerror(), and remove
errmsg() and its table of error messages.


Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1
# 2628ebdb 19-Jul-2002 Tim J. Robbins <tjr@FreeBSD.org>

Remove broken and incomplete support for old releases of System V,
don't support system that implement getcwd(3) with a pipe to /bin/pwd.


Revision tags: release/4.6.0_cvs
# 2749b141 30-Jun-2002 David E. O'Brien <obrien@FreeBSD.org>

Consistently use FBSDID


# 83952a11 13-Jun-2002 Tim J. Robbins <tjr@FreeBSD.org>

Don't list shell builtins when the hash command is used (SUSv3)


# 4c7e4a54 15-Apr-2002 George C A Reid <greid@FreeBSD.org>

Stop a null pointer dereference in the builtin hash function.

PR: 36141
Approved by: cracauer
MFC after: 1 week


Revision tags: release/4.5.0_cvs, release/4.4.0_cvs
# 5134c3f7 02-Feb-2002 Warner Losh <imp@FreeBSD.org>

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int arg

o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
they already are.
o Change
int
foo() {
...
to
int
foo(void)
{
...

show more ...


Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs
# d753a425 16-Aug-2000 Martin Cracauer <cracauer@FreeBSD.org>

Fix type builtin for absolute paths and relative paths with directory
names in them.

Also use a colon in the answer of `type` everytime the questioned item
is not usable.

PR: bin/20567


Revision tags: release/4.1.0, release/3.5.0_cvs, release/4.0.0_cvs
# a436dc79 20-Dec-1999 Martin Cracauer <cracauer@FreeBSD.org>

Fix command hash handling on
PATH=... command

Noted by and fix works for Marcel Moolenaar <marcel@scc.nl>


Revision tags: release/3.4.0_cvs, release/3.3.0_cvs
# 2a456239 28-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7
# 3d7b5b93 18-May-1998 Philippe Charnier <charnier@FreeBSD.org>

Add rcsid. Spelling.


Revision tags: release/2.2.6, release/2.2.5_cvs, release/2.2.2_cvs
# e7a0b024 19-May-1997 Steve Price <steve@FreeBSD.org>

Use the __unused attribute where warranted.


# 76ad65f7 28-Apr-1997 Steve Price <steve@FreeBSD.org>

Add a type builtin and nuke register keyword usage.

Obtained from: NetBSD


12345678