In computer science, a nondeterministic algorithm is an algorithm that, even for the same input, can exhibit different behaviors on different runs, as opposed to a deterministic algorithm. https://en.wikipedia.org/wiki/Nondeterministic_algorithm
Monthly Archives: March 2016
sample session about “brace and tilde” expansions in Bash
$ls trueangle $echo hello > a.txt $echo killo > b.txt $cat {a,b}.txt hello killo $pwd /home/jeffrin/temp $cd ~ $pwd /home/jeffrin $cd tr trueangle/ trueangle.old/ $pwd /home/jeffrin $cd – /home/jeffrin/temp $pwd /home/jeffrin/temp $ls a.txt b.txt trueangle $
sample session about “alias expansion” in Bash
$ls -l 1 ls: cannot access ‘1’: No such file or directory $cat >> 1 hello $ls -l 1 -rw-r–r– 1 jeffrin jeffrin 6 Mar 20 23:38 1 $cat 1 hello $alias appendinput=”cat >>” $appendinput bash: syntax error near unexpected token `newline’ $appendinput app added $cat app added $
sample session with a bash shell expansion named “history expansion”
$! 1 bash: 1: command not found $!1 bash: !1: event not found $!+1 bash: !+1: event not found $!-1 ! 1 bash: 1: command not found $!! ! 1 bash: 1: command not found $!-0 bash: !-0: event not found $