diff --git a/homepage/knowledge/cat.html b/homepage/knowledge/cat.html
index 5470d6f..c513970 100644
--- a/homepage/knowledge/cat.html
+++ b/homepage/knowledge/cat.html
@@ -242,25 +242,44 @@ done
exit 0
-
cat
still has a purpose though. This shell script is relatively slow for short files and very slow for very large files (though dd
itself should probably be used to copy large files from one medium to another anyway). This is provided for educational purposes (though I personally use this shell script in my system PATH; the C implementation provided compiles to a much larger binary using gcc 11.1.0, so this saves a couple kilobytes).
+It's worth noting that the dd_
shell function in the above sample that allows for re-aliasing of dd
to dd bs=1
could be replaced with a shell variable $DD
with the initial value dd
and a changed value according to -u
of dd bs=1
. However, alias dd="dd bs=1"
would not work due to how shell aliases are parsed; see ShellCheck wiki page SC2262.
+
+cat
doesn't work well as a shell script though. The script is relatively slow for short files and very slow for very large files (though dd
itself should probably be used to copy large files from one medium to another anyway). This is provided for educational purposes (though I personally use this shell script in my system PATH; the C implementation provided compiles to a much larger binary using gcc 11.1.0, so this saves a couple kilobytes).
Cited media and further reading
-- Articles
- - McIlroy, M. Douglas - “A Research Unix Reader”
- - Wikipedia - “POSIX § 512- vs 1024-byte blocks”
- As of 2021-06-19 the publicly editable section reads: POSIX mandates 512-byte default block sizes for the df and du utilities, reflecting the typical size of blocks on disks. When Richard Stallman and the GNU team were implementing POSIX for the GNU operating system, they objected to this on the grounds that most people think in terms of 1024 byte (or 1 KiB) blocks. The environment variable POSIX_ME_HARDER was introduced to allow the user to force the standards-compliant behaviour. The variable name was later changed to POSIXLY_CORRECT. This variable is now also used for a number of other behaviour quirks.
+ - Articles
+ - McIlroy, M. Douglas - “A Research Unix Reader”
+ - Wikipedia - “POSIX § 512- vs 1024-byte blocks”
+ As of 2021-06-19 the publicly editable section reads: POSIX mandates 512-byte default block sizes for the df and du utilities, reflecting the typical size of blocks on disks. When Richard Stallman and the GNU team were implementing POSIX for the GNU operating system, they objected to this on the grounds that most people think in terms of 1024 byte (or 1 KiB) blocks. The environment variable POSIX_ME_HARDER was introduced to allow the user to force the standards-compliant behaviour. The variable name was later changed to POSIXLY_CORRECT. This variable is now also used for a number of other behaviour quirks.
-
-- Popular cat implementations
-- Manual pages
+
+ - Manual pages
+ - Notable cat implementations
+
+Acknowledgements
+- Content help
+ - Miles
+ - WeedSmokingJew
+
+- JavaScript help
+ - adamz01h
+
- wiresToGround
+
+- JavaScript libraries used
+
+