Skip to content

Instantly share code, notes, and snippets.

@denisidoro
Last active September 23, 2019 14:17
my_fn()
local -r foo="$(complex_calc1)"
local -r bar="$(complex_calc2)"
dict::new foo "$foo" bar "$bar"
}
dict="$(my_fn)"
foo="$(echo "$dict" | dict::get foo)"
bar="$(echo "$dict" | dict::get bar)"
other_fn "$foo" "$bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment