The new consolidated SysTempFilename() function returns fully qualified paths (relative to the current directory, of no path is specified).
It used to return /tmp/xxxnnnnnnn on Unix and just the specified file (including path, if any ) on Windows.
Any concerns with that change?
If just a filename ist specified, would it be better to return /tmp/xxxnnnnnnnn (or whatever $TMPNAM says) on Unix and %TEMP%\xxxnnnnnnn on Windows?
Anonymous
Minor fixes committed with revision [r11819].
The fix also allows up to 9 filler chars.
Related
Commit: [r11819]
These sound like good changes. The shorter filler characters seemed a bit arbitrary to me, so no big deal. Returning a fully qualified name sounds like a good idea to me. On the /tmp/%TEMP% issue, I can make arguments either way. I'm thinking it makes more sense to default to the current directory. One can always explicitly specify the directory if that's where you want to put it. Maybe we should consider adding a tempDirectory method to the .File class so there's a platform-indepdent method of retrieving it.
SysFileTempName tests and rexxref updates are still to be done
Please find attached a testgroup for SysTempFileName and a proposed text for rexxref
Added tests and updated rexxref with [r12033]
Related
Commit: [r12033]
Fixed a SysTempFilename test with revision [r12038].
Related
Commit: [r12038]