Message278276
| Author |
terry.reedy |
| Recipients |
Dimitri Merejkowsky, berker.peksag, terry.reedy |
| Date |
2016年10月07日.22:07:01 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1475878021.21.0.819021492169.issue28334@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On Windows, HOME is both split into two variables and replaced by USERPROFILE.
C:\Users\Terry>set HOME
HOMEDRIVE=C:
HOMEPATH=\Users\Terry
C:\Users\Terry>set USERPROFILE
USERPROFILE=C:\Users\Terry
So if it make sense to run this on Windows*, I would call it a bug.
* I am guessing that Windows' FTP clients do not use .netrc.
The doc says "the file .netrc in the user’s home directory will be read." without qualification by "if $HOME is set". I don't remember how os.path.expanduser might otherwise find the home directory on unix and don't know what unix users might reasonbly expect. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2016年10月07日 22:07:01 | terry.reedy | set | recipients:
+ terry.reedy, berker.peksag, Dimitri Merejkowsky |
| 2016年10月07日 22:07:01 | terry.reedy | set | messageid: <1475878021.21.0.819021492169.issue28334@psf.upfronthosting.co.za> |
| 2016年10月07日 22:07:01 | terry.reedy | link | issue28334 messages |
| 2016年10月07日 22:07:01 | terry.reedy | create |
|