Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.8/shutil.py", line 557, in copytree
return _copytree(entries=entries, src=src, dst=dst, symlinks=symlinks,
File "/usr/lib/python3.8/shutil.py", line 513, in _copytree
raise Error(errors)
shutil.Error: ['<', 'D', 'i', 'r', 'E', 'n', 't', 'r', 'y', ' ', "'", 'f', 'o', 'o', "'", '>', ' ', 'a', 'n', 'd', ' ', "'", 't', 'a', 'r', 'g', 'e', 't', '_', 'd', 'i', 'r', '/', 'f', 'o', 'o', "'", ' ', 'a', 'r', 'e', ' ', 't', 'h', 'e', ' ', 's', 'a', 'm', 'e', ' ', 'f', 'i', 'l', 'e']
which has mistakenly converted a string to a list. An error is expected here, but the message is not.
Bug report
The following bash script:
produces the error message
which has mistakenly converted a string to a list. An error is expected here, but the message is not.
Your environment
Linked PRs