/usr/share/sagemath/bin/sage-unzip is in sagemath-common 7.4-9.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | #!/usr/bin/env python
#
# This file is a replacement for the 'unzip' command.
#
# We obtain its main feature (extraction) through the 'zipfile' python module.
import argparse
parser = argparse.ArgumentParser(description='Extract the contents of a .zip archive')
parser.add_argument('filename', help="the .zip archive", type=argparse.FileType('r'))
parser.add_argument('-d',help='An optional directory to which to extract files. Set to "." by default.',action='store',default='.')
args = parser.parse_args()
from zipfile import ZipFile
ZipFile(args.filename).extractall(args.d)
|