BSLang / BS

Implementation of the BS language as created by Mark Rendle at BuildStuff.lt 2014. Refer to this repo for information and canonical list of language features
208 stars 9 forks source link

a couple of candidates from BASH #16

Open pasha-19 opened 2 years ago

pasha-19 commented 2 years ago

uninitialized system variables that must be compensated for in application code everytime one uses them. try

set -u
export PS4='$BASH_SOURCE:$FUNCNAME:$LINENO'
set -x
{and any console command}'

local variables, that are globally accessible as long at the function that created them is running ( from anywhere outside the function), and sometimes even longer depending on when garbage collection actually removes them all dependent on the distro's implementation of BASH. Not to mention inconsistent documentation at one point that claims local variables are C-like local; then later admits it is an opinion that they should be C-like local.