PatR
41ae223585
hyphenated Unix user names
...
Fix for $USER, $LOGNAME, getlogin() values that have dashes in them:
keep dash and whatever follows as part of the name instead of stripping
it off for role/race/gender/alignment.
Before:
% USER=test-bar-fem ./nethack
|Shall I pick your female Barbarian's race and alignment for you?
and character ended up named 'test'.
After:
% USER=test-bar-fem ./nethack
|Shall I pick character's race, role, gender and alignment for you?
and character ends up named 'test-bar-fem'. However,
% ./nethack -u test-bar-fem
still behaves like the 'before' case.
|Shall I pick your female Barbarian's race and alignment for you?
Dash handling is only changed when the dash comes from user name (or
from envionment overriding user name), not from direct player input
or run-time config file.
2020-05-12 16:38:12 -07:00
..
2018-11-11 10:29:52 -05:00
2019-11-27 09:53:40 -08:00
2019-11-06 18:43:20 +02:00
2020-04-03 08:21:08 +03:00
2018-04-25 15:00:13 -04:00
2019-11-22 22:35:48 -05:00
2018-12-25 16:26:27 -08:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:15 +09:00
2020-02-26 00:24:37 -05:00
2015-10-17 13:15:46 +03:00
2019-04-19 12:42:35 -07:00
2020-01-29 09:56:43 -05:00
2020-02-12 14:35:37 -08:00
2018-04-25 15:00:13 -04:00
2020-05-12 16:38:12 -07:00
2015-05-25 09:21:31 +09:00
2019-11-06 18:45:10 +02:00
2020-05-03 21:52:41 -04:00
2019-05-12 14:51:26 -04:00
2020-05-05 18:06:00 -07:00
2018-04-25 15:00:13 -04:00
2020-05-06 17:03:06 -04:00
2020-04-27 10:49:34 -07:00
2020-01-29 10:29:37 -05:00
2018-12-15 19:31:42 -05:00
2015-05-25 09:21:15 +09:00
2020-03-04 10:41:57 -05:00
2020-05-04 09:19:37 -07:00
2019-03-06 11:37:52 -08:00
2019-01-28 10:02:08 +01:00
2018-04-25 16:54:50 -04:00
2015-05-25 09:21:15 +09:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2018-04-25 15:00:13 -04:00
2015-10-17 13:15:46 +03:00
2019-05-11 11:10:00 +03:00
2020-02-20 20:12:51 -05:00
2018-04-25 16:54:50 -04:00
2019-11-27 01:27:11 -05:00
2018-04-25 15:00:13 -04:00
2018-12-25 09:34:24 -08:00
2020-04-18 19:55:09 +03:00
2020-05-03 14:13:08 -07:00
2020-04-06 06:12:25 -07:00
2020-03-27 17:47:07 -07:00
2020-04-15 08:59:35 +03:00
2019-01-13 17:19:39 -08:00
2015-05-25 09:21:31 +09:00
2020-02-13 21:24:24 -05:00
2020-05-03 14:13:08 -07:00
2020-01-12 22:02:36 -08:00
2020-04-22 13:39:38 -07:00
2019-01-28 10:02:09 +01:00
2020-05-05 18:06:00 -07:00
2019-11-02 22:53:46 -04:00
2018-10-21 08:45:55 -04:00
2019-10-08 13:26:39 -07:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2015-10-17 18:47:31 +03:00
2020-05-09 15:51:38 -07:00
2019-01-11 17:18:48 -08:00
2020-04-07 19:20:39 +03:00
2018-12-24 16:43:50 -08:00
2019-12-18 07:38:59 -05:00
2019-11-29 17:40:58 -05:00
2018-04-25 15:00:13 -04:00
2018-04-25 16:54:50 -04:00
2020-05-03 10:52:54 -07:00
2019-07-27 16:12:24 -07:00
2020-04-03 08:21:08 +03:00
2019-04-15 13:48:27 -07:00
2020-02-20 20:12:51 -05:00
2019-01-12 01:09:17 -05:00
2020-04-03 08:21:08 +03:00
2020-05-09 13:07:35 -07:00
2020-01-20 21:33:20 -05:00
2019-01-28 10:02:09 +01:00
2015-05-25 09:21:31 +09:00
2020-02-25 16:18:58 -08:00
2020-02-20 20:12:51 -05:00
2015-05-25 09:21:31 +09:00
2020-05-03 10:52:54 -07:00
2020-02-20 20:12:51 -05:00
2020-02-20 20:12:51 -05:00
2020-04-24 02:40:22 -07:00
2015-05-25 09:21:31 +09:00
2015-05-25 09:21:31 +09:00
2020-05-04 16:35:40 -07:00
2020-05-04 09:50:11 -07:00