2020-12-02 02:34:29 +00:00
|
|
|
BUGS
|
|
|
|
****
|
|
|
|
|
|
|
|
cal skips first week on months with first day on sat
|
|
|
|
Yeah. Honestly, I'm not sure right now. But, then again, my
|
|
|
|
brain is currently fried in multiple ways, so, we'll check
|
|
|
|
again in the morning.
|
|
|
|
-Kat
|
|
|
|
|
|
|
|
cal gets months on some years wrong
|
|
|
|
For instance, if you run `./cal 08 08`, the first day of the
|
|
|
|
month is off by one day. It's weird, and I don't know why it
|
|
|
|
happens.
|
|
|
|
-Kat
|
|
|
|
|
|
|
|
TODOS
|
|
|
|
*****
|
|
|
|
|
|
|
|
wc needs multibyte support
|
|
|
|
It's supposed to have a flag, -m, that counts characters, as
|
|
|
|
opposed to -c which counts bytes (ASCII characters, if you
|
|
|
|
will). We need to add in support for -m proper, using some
|
|
|
|
form of multibyte.
|
2020-12-14 13:18:04 +00:00
|
|
|
-Kat
|
|
|
|
|
|
|
|
cal needs the ability to show a whole year calendar
|
|
|
|
This needs to be done eventually.
|
|
|
|
-Kat
|
2020-12-02 02:34:29 +00:00
|
|
|
|
2020-12-31 01:37:25 +00:00
|
|
|
sh probably needs to be trashed and restarted
|
|
|
|
When I started it, it was from a small online tutorial on the
|
|
|
|
basics of how shells work. It was more a demonstration of
|
|
|
|
things like forking and the execvp and waitpid functions. It
|
|
|
|
wasn't actually intended to grow into a proper shell. As it
|
|
|
|
stands this is just going to keep getting cobbled together
|
|
|
|
until it collapses under its own weight. It's probably better
|
|
|
|
to restart now, parse input using lex and yacc instead of
|
|
|
|
doing it ourselves, and work from there on implementation
|
|
|
|
of everything. We know the basics of how a shell does its
|
|
|
|
thing (fork, execvp, waitpid), now to use that with newer
|
|
|
|
knowledge of building language parsers with things like lex
|
|
|
|
and yacc, getting command line arguments with getopts, and
|
|
|
|
other things that will lead to a proper, fully-formed shell.
|
|
|
|
-Kat
|
|
|
|
|
2020-12-02 02:34:29 +00:00
|
|
|
UTILITIES
|
|
|
|
*********
|
|
|
|
|
|
|
|
O - Done . - In progress > - To be done ? - Maybe?
|
|
|
|
| - Working X - Needs fixing # - Incomplete M - man page needed
|
|
|
|
|
|
|
|
UTILITY STATUS
|
|
|
|
======= ======
|
|
|
|
admin >
|
2020-12-11 07:28:55 +00:00
|
|
|
ar >
|
2020-12-02 02:34:29 +00:00
|
|
|
asa O |
|
|
|
|
at >
|
2020-12-11 07:28:55 +00:00
|
|
|
awk >
|
2020-12-02 02:34:29 +00:00
|
|
|
basename O |
|
|
|
|
batch >
|
2020-12-11 07:28:55 +00:00
|
|
|
bc . #M
|
2020-12-02 02:34:29 +00:00
|
|
|
cal . X#M
|
|
|
|
calendar ?
|
|
|
|
cat O |
|
2020-12-11 03:05:11 +00:00
|
|
|
cflow >
|
2020-12-12 16:39:52 +00:00
|
|
|
chgrp . X#M
|
2020-12-11 03:05:11 +00:00
|
|
|
chmod >
|
|
|
|
chown >
|
2020-12-02 02:34:29 +00:00
|
|
|
cksum O |
|
2020-12-11 07:28:55 +00:00
|
|
|
cmp O |
|
2020-12-02 02:34:29 +00:00
|
|
|
comm >
|
|
|
|
compress >
|
|
|
|
cp >
|
|
|
|
crontab >
|
|
|
|
csplit >
|
|
|
|
ctags >
|
2020-12-11 07:28:55 +00:00
|
|
|
cut >
|
2020-12-02 02:34:29 +00:00
|
|
|
cxref >
|
|
|
|
date >
|
2020-12-11 07:28:55 +00:00
|
|
|
dd >
|
2020-12-02 02:34:29 +00:00
|
|
|
delta >
|
2020-12-11 07:28:55 +00:00
|
|
|
df >
|
2020-12-02 02:34:29 +00:00
|
|
|
diff >
|
|
|
|
dirname O |
|
2020-12-11 07:28:55 +00:00
|
|
|
du >
|
2020-12-02 02:34:29 +00:00
|
|
|
echo O |
|
2020-12-11 07:28:55 +00:00
|
|
|
ed >
|
|
|
|
ex >
|
2020-12-02 02:34:29 +00:00
|
|
|
expand O |
|
|
|
|
expr >
|
|
|
|
false O |
|
|
|
|
file >
|
|
|
|
find >
|
|
|
|
fold >
|
|
|
|
fort77 >
|
|
|
|
fuser >
|
|
|
|
gencat >
|
2020-12-11 07:28:55 +00:00
|
|
|
get >
|
2020-12-02 02:34:29 +00:00
|
|
|
getconf >
|
|
|
|
grep >
|
|
|
|
head O |
|
|
|
|
iconv >
|
2020-12-11 07:28:55 +00:00
|
|
|
id >
|
2020-12-02 02:34:29 +00:00
|
|
|
ipcrm >
|
|
|
|
ipcs >
|
|
|
|
join >
|
2020-12-11 07:28:55 +00:00
|
|
|
lex >
|
2020-12-02 02:34:29 +00:00
|
|
|
link O |
|
2020-12-11 07:28:55 +00:00
|
|
|
ln O |
|
2020-12-02 02:34:29 +00:00
|
|
|
locale >
|
|
|
|
localedef >
|
2021-08-03 04:43:14 +00:00
|
|
|
logger O | M
|
2020-12-02 02:34:29 +00:00
|
|
|
login >
|
2020-12-11 07:28:55 +00:00
|
|
|
logname O |
|
|
|
|
lp >
|
|
|
|
ls >
|
|
|
|
m4 >
|
2020-12-02 02:34:29 +00:00
|
|
|
mailx . #
|
|
|
|
make >
|
2020-12-11 07:28:55 +00:00
|
|
|
man >
|
2020-12-02 02:34:29 +00:00
|
|
|
mesg >
|
|
|
|
mkdir >
|
2020-12-13 06:52:43 +00:00
|
|
|
mkfifo O | M
|
2020-12-02 02:34:29 +00:00
|
|
|
mknod >
|
|
|
|
more >
|
2020-12-11 07:28:55 +00:00
|
|
|
mv >
|
2020-12-02 02:34:29 +00:00
|
|
|
netstat >
|
|
|
|
newgrp >
|
|
|
|
news ?
|
|
|
|
nice >
|
2020-12-11 07:28:55 +00:00
|
|
|
nl >
|
|
|
|
nm >
|
2020-12-02 02:34:29 +00:00
|
|
|
nohup >
|
2020-12-11 07:28:55 +00:00
|
|
|
od ?
|
2020-12-02 02:34:29 +00:00
|
|
|
paste >
|
|
|
|
patch >
|
|
|
|
pathchk >
|
2020-12-11 07:28:55 +00:00
|
|
|
pax >
|
|
|
|
ping >
|
|
|
|
pr >
|
2020-12-02 02:34:29 +00:00
|
|
|
printf >
|
2020-12-11 07:28:55 +00:00
|
|
|
prs >
|
|
|
|
ps >
|
|
|
|
pwd O |
|
2020-12-02 02:34:29 +00:00
|
|
|
qalter >
|
|
|
|
qdel >
|
|
|
|
qhold >
|
|
|
|
qmove >
|
|
|
|
qmsg >
|
|
|
|
qrerun >
|
|
|
|
qrls >
|
|
|
|
qselect >
|
|
|
|
qsig >
|
|
|
|
qstat >
|
|
|
|
qsub >
|
|
|
|
renice >
|
|
|
|
rev ?
|
2020-12-11 07:28:55 +00:00
|
|
|
rm >
|
2020-12-02 02:34:29 +00:00
|
|
|
rmdel >
|
2020-12-14 13:18:04 +00:00
|
|
|
rmdir O |
|
2020-12-02 02:34:29 +00:00
|
|
|
sact >
|
|
|
|
sccs >
|
2020-12-11 07:28:55 +00:00
|
|
|
sed >
|
|
|
|
sh . X#M
|
2020-12-11 10:55:06 +00:00
|
|
|
sleep O |
|
2020-12-02 02:34:29 +00:00
|
|
|
sort >
|
|
|
|
split >
|
|
|
|
strings >
|
|
|
|
strip >
|
|
|
|
stty >
|
2020-12-11 07:28:55 +00:00
|
|
|
tac ?
|
2020-12-02 02:34:29 +00:00
|
|
|
tail >
|
|
|
|
talk >
|
2020-12-11 10:54:41 +00:00
|
|
|
tee O |
|
2020-12-02 02:34:29 +00:00
|
|
|
tftp ?
|
|
|
|
time >
|
|
|
|
touch >
|
|
|
|
tput >
|
2020-12-11 07:28:55 +00:00
|
|
|
tr >
|
2020-12-02 02:34:29 +00:00
|
|
|
true O |
|
|
|
|
tsort >
|
2020-12-11 07:28:55 +00:00
|
|
|
tty O |
|
2020-12-02 02:34:29 +00:00
|
|
|
uname >
|
|
|
|
uncompress >
|
|
|
|
unexpand >
|
|
|
|
unget >
|
|
|
|
uniq >
|
|
|
|
unlink >
|
|
|
|
uucp >
|
|
|
|
uudecode >
|
|
|
|
uuencode >
|
|
|
|
uustat >
|
2020-12-11 07:28:55 +00:00
|
|
|
uux >
|
|
|
|
val >
|
|
|
|
vi >
|
|
|
|
wc O |
|
2020-12-02 02:34:29 +00:00
|
|
|
what >
|
2020-12-11 07:28:55 +00:00
|
|
|
who >
|
2020-12-02 02:34:29 +00:00
|
|
|
write >
|
|
|
|
xargs >
|
|
|
|
yacc >
|
|
|
|
zcat >
|
|
|
|
|
|
|
|
NOTES
|
|
|
|
*****
|
|
|
|
|
|
|
|
Some things may get added:
|
|
|
|
|
|
|
|
From the LSB:
|
|
|
|
chfn, chsh, dmesg, egrep, fgrep, groupadd, groupdel, groupmod,
|
|
|
|
groups, gunzip, gzip, hostname, install, killall, md5sum,
|
2020-12-12 16:39:52 +00:00
|
|
|
mknod, mktemp, mount, passwd, pidof, sendmail, seq, shutdown,
|
|
|
|
su, sync, tar, umount, useradd, userdel, usermod
|
|
|
|
|
|
|
|
In general:
|
|
|
|
a cobol compiler, a debugger, an assembler, look/spell, wall
|
2020-12-02 02:34:29 +00:00
|
|
|
|
|
|
|
And some need to get defined:
|
|
|
|
other
|
|
|
|
news/calendar - Both are referenced in the "Rationale" section of
|
|
|
|
The Open Group Base Specification Issue 7 as utilities that
|
|
|
|
weren't included. Both sound kinda interesting. I kinda want
|
|
|
|
to included them. Unfortunately, I have no clue what they are
|
|
|
|
or how they work. So, either I need to dig 'em up and find out,
|
|
|
|
or I need to define them myself.
|
|
|
|
*GOOD NEWS!* I found the heirloom utility set, which includes
|
|
|
|
both of these applications! Yay!
|
|
|
|
|
|
|
|
notes on things not in POSIX or other standards:
|
|
|
|
tac: it's basically cat but backwards
|
|
|
|
rev: Reverses a file line-by-line
|
|
|
|
|
|
|
|
So, POSIX-conformant applications are supposed to define the
|
|
|
|
_POSIX_C_SOURCE macro with value 200809L to enable POSIX features
|
|
|
|
and the macro _XOPEN_SOURCE with value 700 if they're XSI-compliant.
|
|
|
|
For any XSI-compliant utilities, we really should define the
|
|
|
|
_XOPEN_SOURCE macros; for any non-XSI-compliant applications, we
|
|
|
|
should really define the _POSIX_C_SOURCE macro until such a time
|
|
|
|
when/if they become XSI-compliant.
|