3 ms·
Did they finally implemented command history in shell? Last time I used OpenBSD it was considered as possible attack vector.
by jkot 12y ago
Did they finally implemented command history in shell? Last time I used OpenBSD it was considered as possible attack vector.
- mhurron 12y agoYou're free to install whatever other shell you want.
- masklinn 12y agoThe default shell (pdksh) supports command history, it just doesn't setup a default one, so if HISTFILE is undefined there's no command history. That's pdksh behaviour not specific to OpenBSD (aside from not creating a default HISTFILE on new user profiles).
- deleted 12y ago[deleted]
- masklinn 12y ago? Command history is a property of the shell and pdksh supports it, it just isn't enabled if HISTFILE is unset (other shells use a default HISTFILE if it's unset). Just `export HISTFILE=~/.sh_history` from your `.profile` and you're done.
- tedunangst 12y agoProbably worth clarifying that even without histfile, each shell will keep its own history in memory. You can still run commands again by pressing the up arrow. Seems obvious, but people seem to have some funny notions about OpenBSD.
- brynet 12y agoOpenBSD has used pdksh as their sh(1)/ksh(1) implementation for over 18 years. It has supported command history since the beginning.. http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/ksh.1 http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man1/... http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin/ksh/history.c http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/bin/ksh/history...