bashsupport-pro icon indicating copy to clipboard operation
bashsupport-pro copied to clipboard

Variable used in trap "could be local"

Open jakub-bochenski opened this issue 4 months ago • 2 comments

foo() {
	results=$(mktemp)
	trap 'rm -f "$results"' EXIT
}

jakub-bochenski avatar Aug 28 '25 15:08 jakub-bochenski