Commit Briefs

19531c0592 Stefan Sperling

add a 'saveenv' command (envpersist)

The saveenv command stores environment variables set by setenv in ~/.nshenv.


5fd9bfb610 Stefan Sperling

add a hash table implementation


574d5c2d6a Stefan Sperling

fill empty configuration files with an example config from /etc/examples

If the user begins editing an empty file which corresponds to a file in the /etc/examples directory offer to load this example for editing. Suggested by Tom Smyth. ok tom, chris


cec4f8cecc Stefan Sperling

leave pf processing of rc(8) enabled in integration script

Otherwise pfctl -e will never be run during boot, leaving pf disabled by default.


e84a83799e GitHub

Merge pull request #139 from stspdotname/env

add 'show environment', 'setenv', and 'unsetenv' commands


660067642d Stefan Sperling

add 'show environment', 'setenv', and 'unsetenv' commands

Being able to manage environment variables from within nsh will be useful, especially if nsh is used as a login shell because nsh's environment is visible to other commands run by nsh. Setting variables can now affect the behaviour of nsh itself. For example, it is possible to set NSH_MANUAL_PAGE from within a running nsh session and the new value will immediately be used by the 'manual' command. This particular variable is only useful to nsh developers themselves but the same mechanism could be used for user-facing variables in the future. If 'show environment' is run without further arguments all variables will be displayed. Otherwise the value of the specified variable will be displayed if the variable exists. All commands support tab-completion for names which already exist in the environment. The 'setenv' commands appends "=" if the name being completed does not yet exist in the environment.


2d331b3f3d GitHub

Merge pull request #138 from stspdotname/cron

add crontab commands: show crontab, crontab edit, crontab install


d84619f382 chris

wgpeer description

ok stsp@



5cf29cab52 chris

Remove ndp repeat (unused)

ok stsp@


a514ecfd17 Stefan Sperling

add crontab commands: show crontab, crontab edit, crontab install

For now, display and edit the crontab file of the root user only. The "show crontab" command displays the root user's crontab as shown by the crontab -l command. Editing is implemented via a new CTL handler which knows about the semantics of the crontab(1) command. If an NSH configuration contains crontab rules then the "crontab install" command appears in the running-config in order to install the crontab file managed by nsh to the system with crontab(1).



dbd13edec1 Stefan Sperling

fix section number displayed in the bgpnsh man page


e1055a045b Stefan Sperling

backout previous: the bgpnsh manual page belongs in manual section 1

Tom suggests sticking to section 8; I overlooked that bgplgsh is in section 8


4bd0390c24 Stefan Sperling

the bgpnsh manual page belongs in manual section 1


c68848fc55 Stefan Sperling

point readers at Section 7 from the enable command section


eeb7412e12 Stefan Sperling

document new behaviour of the enable commmand



e5955f9ed5 Stefan Sperling

fix a typo I put into the man page


8a89202652 Stefan Sperling

man page updates related to the new -e re-exec feature


61379117de GitHub

Merge pull request #137 from stspdotname/priv-root

make root users start out in privileged mode has been discussed already simple change merging


e442657b19 Stefan Sperling

sync dist file list


782443d4c1 Stefan Sperling

make root users start out in privileged mode

Suggested by chris@



0da6bdefe7 Stefan Sperling

fix makeargv copyright; pointed out by chris@