maw.gay: "there is an eight hour delay"
rc(1)
cheatsheet: functions: fn name{list} - define a function as list of commands fn name - undefine function fn note{list} - A function with a special name will be called when rc receives a corresponding note - sighup (hangup), sigint (interrupt), sigalrm (alarm), sigfpe (floating point trap) fn note - handle signal in default manner brackets/subshells: {} - precedence modification >{}, <{} - run in subshell, redirecting output @{} - The unary @ operator, with precedence equal to !, causes its operand to be executed in a subshell. redirection: > >> < <> >[fd0] <>[fd0] <[fd0] >[fd0=fd1] <>[fd0=fd1] <[fd0=fd1] "Redirections are executed from left to right. Therefore, cc junk.c >/dev/null >[2=1] and cc junk.c >[2=1] >/dev/null have different effects: the first puts standard output in /dev/null and then puts diagnostic output in the same place, where the second directs diagnostic output to the terminal and sends standard output to /dev/null." standard file descriptors: 0 stdin 1 stdout 2 stderr
gallery: # dynamic variable names for(i in $at $af){ a$#n=$i n=(1 $n) } # bidirectional file communication <>/mnt/web/clone { # 0 is now input from cloned file # 1 is now output to cloned file d=/mnt/web/^`{sed 1q} # read from input echo fuck >[1=0] # write to file? } <>/net/tcp/clone >[1=0] lpd <>[3]/net/tcp/42/data
license ∆ Tue Mar 23 18:17:18 EDT 2021