Closed jiahao closed 9 years ago
If you GZip.open an existing file in "wb" mode, it prompts you at the console if you want to overwrite it, regardless of isinteractive().
GZip.open
"wb"
isinteractive()
shell> touch random.gz julia> using GZip; GZip.open("random.gz", "wb") random already exists -- do you wish to overwrite (y or n)?
I don't think we should do this. Instead we should follow the Linux Standard Base Specification, which says:
The mode argument is based on that of fopen()
mode
fopen()
i.e. it should follow C convention to silently truncate to zero length.
Oh wait nevermind this was a completely different problem in my test script. Sorry.
If you
GZip.open
an existing file in"wb"
mode, it prompts you at the console if you want to overwrite it, regardless ofisinteractive()
.I don't think we should do this. Instead we should follow the Linux Standard Base Specification, which says:
i.e. it should follow C convention to silently truncate to zero length.