getUserEntryForName weirdness

Nils Anders Danielsson nad at cs.chalmers.se
Fri Oct 29 12:55:51 EDT 2004


On Fri, 29 Oct 2004, Peter Simons wrote:

> Is anyone else seeing this on his system?
>
>   getUserEntryForName [] >>= print . userName
>   "wasabi"

On Solaris I get the following results (GHC 6.2.2, GHC 6.2.1 exits with
Illegal Instruction):

Prelude System.Posix.User> getUserEntryForName "undefined user" >>= print . userName
""
Prelude System.Posix.User> getUserEntryForName "" >>= print . userName
"\208\ACK"
Prelude System.Posix.User> getUserEntryForName "foo" >>= print . userName
"\208\ACK"
Prelude System.Posix.User> getUserEntryForName "foo " >>= print . userName
Segmentation Fault

/NAD


More information about the Glasgow-haskell-users mailing list