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.
38 KiB
38 KiB