Commit Graph

252 Commits

Author SHA1 Message Date
Jonas 'Sortie' Termansen d7b1dce054 Dumb down echo(1).
Options and escape sequences are fatally incompatible with historic echo
that has no room for such extensions. Instead they pose risk because it is
harder to use echo on unvalidated input safely and because any further
extensions potentially break existing scripts. Use printf(1) instead.
2015-08-22 00:44:39 +02:00
Jonas 'Sortie' Termansen ef45218660 Add S_ISGID and S_ISUID.
I originally left them out because Sortix doesn't have setuid and setgid
executable support, but this created considerable compatibility issues and
it is better to supply them as the mode bits still exist and can be set.
2015-08-21 21:25:00 +02:00
Jonas 'Sortie' Termansen 840c8e6b02 Fix pager double prompt if paging during special character. 2015-08-14 17:26:07 +02:00
Jonas 'Sortie' Termansen ec38222f9b Fix head(1) and tail(1) directory handling. 2015-08-11 15:57:55 +02:00
Jonas 'Sortie' Termansen c81610f7a3 Fix du counting block devices. 2015-06-27 17:06:43 +02:00
Jonas 'Sortie' Termansen 40594eba1c Fix sort(1) reverse sort not working. 2015-06-27 17:06:43 +02:00
Jonas 'Sortie' Termansen 1d7c157848 Fix ls closing stdout twice. 2015-05-15 16:18:41 +02:00
Jonas 'Sortie' Termansen f3e4be0d83 Fix getdelim(3). 2015-05-15 16:18:40 +02:00
Jonas 'Sortie' Termansen f384fcdff1 Run time(1) children in their own process group. 2015-02-08 22:58:32 +01:00
Jonas 'Sortie' Termansen e76d4a90c5 Silence maybe initialized warning in pager. 2015-02-06 14:55:35 +01:00
Jonas 'Sortie' Termansen ab66b91086 Fix NOTO typo. 2014-12-28 20:18:58 +01:00
Jonas 'Sortie' Termansen a4ee2e3724 Add space as an alias for page down in pager(1). 2014-12-28 20:18:58 +01:00
Jonas 'Sortie' Termansen 9c2f89d56c Work around a getdelim bug in column(1). 2014-12-28 20:18:58 +01:00
Jonas 'Sortie' Termansen d238518c35 Rewrite pager(1). 2014-12-27 23:43:39 +01:00
Jonas 'Sortie' Termansen 77cf804ed2 Move init to its own directory. 2014-12-26 21:48:15 +01:00
Jonas 'Sortie' Termansen 2abd0cf754 Add unmount(1). 2014-12-26 21:45:29 +01:00
Jonas 'Sortie' Termansen e88a3ef654 Fix cp(1) error message. 2014-12-26 14:18:25 +01:00
Jonas 'Sortie' Termansen 08461c72fa Move editor to its own subdirectory. 2014-12-07 20:29:08 +01:00
Jonas 'Sortie' Termansen d8df769692 Move sh to its own directory. 2014-12-07 18:25:09 +01:00
Jonas 'Sortie' Termansen 99f27d5eb1 Fix pwd(1) unsetting PWD and exit code. 2014-12-04 18:12:50 +01:00
Jonas 'Sortie' Termansen 4e9746c314 Add yes(1). 2014-12-03 15:20:03 +01:00
Jonas 'Sortie' Termansen 3ad7ab4fc3 Add gethostname(2) and sethostname(2). 2014-12-03 13:58:29 +01:00
Jonas 'Sortie' Termansen d668c5558e Fix sprintf uses in sh. 2014-12-02 18:00:23 +01:00
Jonas 'Sortie' Termansen bb3f591057 Add symbolic links. 2014-12-02 17:36:36 +01:00
Jonas 'Sortie' Termansen 2586685061 Ongoing build system maintainance. 2014-12-02 17:09:28 +01:00
Jonas 'Sortie' Termansen 2b2dd347ec Add symbolic link support to ls(1). 2014-12-02 16:28:46 +01:00
Jonas 'Sortie' Termansen b1a2817ada Add symbolic link support to cp(1). 2014-12-02 16:28:46 +01:00
Jonas 'Sortie' Termansen 0dc951b94e Improve cp's install(1) emulation. 2014-12-01 23:34:43 +01:00
Jonas 'Sortie' Termansen 3d091f39bf Harden strcpy calls. 2014-11-30 19:53:42 +01:00
Jonas 'Sortie' Termansen 0329192ba8 Ignore unsupported cp --preserve option. 2014-11-30 16:09:01 +01:00
Jonas 'Sortie' Termansen 7482a13195 Rewrite column(1). 2014-11-27 20:55:34 +01:00
Jonas 'Sortie' Termansen ba29cad8a3 Improve cp(1). 2014-11-27 01:36:52 +01:00
Jonas 'Sortie' Termansen e5d07072f3 Set TERM=sortix in init. 2014-11-27 00:20:53 +01:00
Jonas 'Sortie' Termansen 0cd7fb6b76 Remove objtype environment variable from init. 2014-11-27 00:20:53 +01:00
Jonas 'Sortie' Termansen 91a1df02b1 Remove calc(1).
This program was mostly replaced with the standard expr(1) tool and the code
quality was not up to the standards. Finally, it was not very useful.
2014-11-26 23:34:14 +01:00
Jonas 'Sortie' Termansen d56dcafd27 Add sleep(1). 2014-11-26 23:34:14 +01:00
Jonas 'Sortie' Termansen 99d1c61b24 Use a proper shell as sh(1) backend if available. 2014-11-26 21:41:09 +01:00
Jonas 'Sortie' Termansen f8c5adf20f Add #! support to execve(2). 2014-11-26 21:14:13 +01:00
Jonas 'Sortie' Termansen 3577cb81fe Improve execvpe(3) logic and run shell on ENOEXEC. 2014-11-25 23:52:12 +01:00
Jonas 'Sortie' Termansen a334ede4c4 Rewrite ls(1). 2014-11-25 18:53:31 +01:00
Jonas 'Sortie' Termansen 87be32b948 Remove obsolete uninstall Makefile target from projects. 2014-11-24 21:32:24 +01:00
Jonas 'Sortie' Termansen a7cf2c4b36 Add unicode support to editor(1). 2014-11-24 17:41:26 +01:00
Jonas 'Sortie' Termansen 9e6148f6ff Refactor default compiler options logic. 2014-11-24 17:10:50 +01:00
Jonas 'Sortie' Termansen fbbb33287b Implement standard library feature macros. 2014-11-20 21:09:14 +01:00
Jonas 'Sortie' Termansen d2cea190a8 Remove DEFAULT_STUFF environmental variable from init(1). 2014-11-20 21:09:14 +01:00
Jonas 'Sortie' Termansen e9b81ccaa5 Rewrite chvideomode(1). 2014-11-19 00:08:49 +01:00
Jonas 'Sortie' Termansen c2f9c0bb12 Remove --usage options from shell utilities in favor of --help. 2014-11-18 20:29:18 +01:00
Jonas 'Sortie' Termansen c5fa54aa08 Use fmemopen(3) internally in sh(1). 2014-11-17 19:18:16 +01:00
Jonas 'Sortie' Termansen d7e1c926a2 Run command-not-found in sh only if errno is ENOENT. 2014-11-17 16:23:02 +01:00
Jonas 'Sortie' Termansen 2697711dc1 Add tr(1). 2014-11-17 16:23:02 +01:00