Export sessions as zip file failure
The command available in the IDE "File > Export session as zip file" does not work when there is a parenthesis in the name of the parent folder.
For example, with a file test.mlw
in the directory folder(1)
, I get the two following error messages:
-
cannot produce archive test.zip
in the "Messages" tab of the IDE -
sh: 1: Syntax error: "(" unexpected
in the terminal
This looks like an error in the shell command, where enclosing "
might be missing.
This error happens frequently in practice: students tend to download several times the same files (or files with the same names, that originate from different courses) in the same home folder. This results in foo.zip
, foo(1).zip
, etc. in their home folder. The latter zip file is extracted in a new folder named foo(1)
.