diff --git a/homepage/knowledge/cat.html b/homepage/knowledge/cat.html index f2b23f7..3527be5 100644 --- a/homepage/knowledge/cat.html +++ b/homepage/knowledge/cat.html @@ -26,6 +26,7 @@ window.is_highlight_stylesheet_here = false; window.load_highlighting = function(language){ var element; var script; + document.getElementById(language + "_toggle").remove(); if(!window.is_highlight_stylesheet_here){ document.getElementById("highlight").setAttribute("href", "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.0.1/styles/default.min.css"); window.is_highlight_stylesheet_here = true; @@ -77,7 +78,7 @@ POSIX doesn’t mandate buffering by default - specifically, -u

This is a POSIX-compliant implementation of UNIX cat with no additional features nor buffered output in C:

- +

 #include <stdio.h>
 #include <stdlib.h>
@@ -172,7 +173,7 @@ main(int argc, char *argv[]){
 

It’s worth noting that this concept of cat as a utility that sequentially prints given files to standard output means cat can be replaced by a simple shell script that does the same using dd and printf; cat as defined by POSIX is actually totally redundant to other POSIX utilities. Here’s the shell script:

- +

 #!/bin/sh