Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a couple of candidates from BASH #16

Open
pasha-19 opened this issue Apr 14, 2022 · 0 comments
Open

a couple of candidates from BASH #16

pasha-19 opened this issue Apr 14, 2022 · 0 comments

Comments

@pasha-19
Copy link

pasha-19 commented Apr 14, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant