Which programming language is this?
backup() {
local src="$1"
tar -czf "${src}.tar.gz" "$src"
}
backup logs
Answer: Bash
A shell function using
Play Programming Languages ▸
local, the positional $1 and ${src} expansion, called without parentheses, is Bash.