History log of /netbsd-src/bin/sh/builtins.def (Results 1 – 25 of 29)
Revision Date Author Comments
# d1c86d36 09-Oct-2024 kre <kre@NetBSD.org>

PR bin/58687 -- implement suspend as a builtin in sh

Requested by uwe@ in PR bin/58687 without objections from
anyone except me, here is an implementation of a suspend
builtin command for /bin/sh

T

PR bin/58687 -- implement suspend as a builtin in sh

Requested by uwe@ in PR bin/58687 without objections from
anyone except me, here is an implementation of a suspend
builtin command for /bin/sh

The sh.1 man page is updated, naturally, to describe it.

This new builtin does not exist in SMALL shells -- as used
on (some) boot media, etc.

If this turns out not to be useful, it can easily be removed.

show more ...


# b9723b82 09-Oct-2024 kre <kre@NetBSD.org>

Housekeeping.

Improve some comments, and sort the list of builtins, to make it easier
to find what is there and what isn't (since some have multiple different
command names, sort by the internal fun

Housekeeping.

Improve some comments, and sort the list of builtins, to make it easier
to find what is there and what isn't (since some have multiple different
command names, sort by the internal function name). Still leave the
commented out, could be implemented, but haven't ones, almost to last,
and the almost never indluded debug command absolute last.

NFCI. (No changes should be visible externally).

show more ...


# a18d86b7 10-Nov-2021 kre <kre@NetBSD.org>

Ensure that all of the POSIX standard utilities are correctly
identified with the -u flag (that is, I hope I identified all
the ones that were missing it).

This change is a no-op (NFC) as the -u fla

Ensure that all of the POSIX standard utilities are correctly
identified with the -u flag (that is, I hope I identified all
the ones that were missing it).

This change is a no-op (NFC) as the -u flag does nothing.

Still, just in case we find a use for it one day, and just as a
matter of general principle, we should get this correct.

show more ...


# 727a664b 14-Feb-2019 kre <kre@NetBSD.org>

Add the "specialvar" built-in command. Discussed (well, mentioned
anway) on tech-userlevel with no adverse response.

This allows the magic of vars like HOSTNAME SECONDS, ToD (etc) to be
restored s

Add the "specialvar" built-in command. Discussed (well, mentioned
anway) on tech-userlevel with no adverse response.

This allows the magic of vars like HOSTNAME SECONDS, ToD (etc) to be
restored should it be lost - perhaps by having a var of the same name
imported from the environment (which needs to remove the magic in case
a set of scripts are using the env to pass data, and the var name chosen
happens to be one of our magic ones).

No change to SMALL shells (or smaller) - none of the magic vars (except
LINENO, which is exempt from all of this) exist in those, hence such a
shell has no need for this command either.

show more ...


# ab36694a 15-May-2017 kre <kre@NetBSD.org>

DEBUG mode shell update (changes nothing for shells which are not
compiled for DEBUG.)

Add debug builtin command, and corresponding -D command line option.
As usual, for DEBUG related stuff, read th

DEBUG mode shell update (changes nothing for shells which are not
compiled for DEBUG.)

Add debug builtin command, and corresponding -D command line option.
As usual, for DEBUG related stuff, read the source for info, that's
all there is about this.

This completes the infrastructure changes for the updated DEBUG TRACE
mechanism, so now converting the rest of the shell's internal tracing
can happen as desired - piecemeal.

show more ...


# 168f1d4a 02-Feb-2017 christos <christos@NetBSD.org>

Add fdflags builtin. Discussed with Chet and he has implemented it for
bash too.


# 66e60a49 10-May-2015 joerg <joerg@NetBSD.org>

Include printf by default even for SMALL builds. It is used e.g. by
dhcpcd and as such required by most ramdisk images. Allow turning it off
again by TINYPROG.


# 658a58d0 31-Dec-2012 dsl <dsl@NetBSD.org>

Add support for '%n' being a shorthand for 'fg %n'.


# cf788c31 13-Jul-2004 seb <seb@NetBSD.org>

Add new builtin `wordexp' to support wordexp(3).

From FreeBSD.
Provided in PR lib/26123.
Approved by kleink@.


# 95a73796 06-Jun-2004 christos <christos@NetBSD.org>

don't include the printf builtin if we are SMALL; saves 10K.


# 59a105b4 22-Aug-2003 itojun <itojun@NetBSD.org>

remove \r (agc, are you using MS-DOS?)


# 3538d265 22-Aug-2003 agc <agc@NetBSD.org>

Move 4 more files from UCB 4 clause to 3 clause licence.

Thanks to Julio Merino for pointing them out.


# f8d2e9e1 04-May-2003 gmcgarry <gmcgarry@NetBSD.org>

Add new builtin 'inputrc' which allows keybindings to be redefined
for the current shell. From Arne H Juul in PR#10097.


# c02b3bbd 24-Nov-2002 christos <christos@NetBSD.org>

Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentia

Fixes from David Laight:
- ansification
- format of output of jobs command (etc)
- job identiers %+, %- etc
- $? and $(...)
- correct quoting of output of set, export -p and readonly -p
- differentiation between nornal and 'posix special' builtins
- correct behaviour (posix) for errors on builtins and special builtins
- builtin printf and kill
- set -o debug (if compiled with DEBUG)
- cd src obj (as ksh - too useful to do without)
- unset -e name, remove non-readonly variable from export list.
(so I could unset -e PS1 before running the test shell...)

show more ...


# b2525434 09-Apr-2000 christos <christos@NetBSD.org>

PR/9847: Geoff C. Wing: Make test(1) a builtin.


# 7accaec4 14-Mar-1997 christos <christos@NetBSD.org>

NO_HISTORY->SMALL


# 680690d3 06-Feb-1997 christos <christos@NetBSD.org>

add type builtin.


# 07bae7ed 11-May-1995 christos <christos@NetBSD.org>

Merge in my changes from vangogh, and fix the x=`false`; echo $? == 0
bug.


# 49f0ad86 21-Mar-1995 cgd <cgd@NetBSD.org>

convert to new RCS id conventions.


# 6cd3ad1d 04-Nov-1994 jtc <jtc@NetBSD.org>

ulimit builtin (PR #388)

This public domain code, originally by Doug Gwyn, Doug Kingston, Eric
Gisin, and Michael Rendell was ripped from pdksh 5.0.8 and hacked for
use with ash.


# cafd1f7e 11-Jun-1994 mycroft <mycroft@NetBSD.org>

Add RCS ids.


# e3c63ad9 14-May-1994 cgd <cgd@NetBSD.org>

add back in support for building w/o obj dir. also, add NO_HISTORY
define, which (if you invoke mkbuiltins properly) gets you a sh w/o
history of command line editing (for floppy sh).


# 542ace3b 11-May-1994 jtc <jtc@NetBSD.org>

reintegrate NetBSD's false builtin


# 714c2cc3 11-May-1994 jtc <jtc@NetBSD.org>

temporarily disable printf builtin


# 37ed7877 11-May-1994 jtc <jtc@NetBSD.org>

sync with 4.4lite


12