Create a command-line tool /app/extract that extracts a tarball ( .tar.gz or .tgz ) SAFELY. It must prevent…
Create a command-line tool /app/extract that extracts a tarball ( .tar.gz or .tgz ) SAFELY. It must prevent…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). GOAL: Given a tarball path as the only argument, extract its contents to a directory named after the…
The task
GOAL: Given a tarball path as the only argument, extract its contents to a directory named after the archive (basename without extension) in the current working directory.
Part of ai-and/termgrade-environments.