getUserEntryForName weirdness

Remi Turk rturk at science.uva.nl
Fri Oct 29 16:27:34 EDT 2004


On Fri, Oct 29, 2004 at 06:29:52PM +0200, Peter Simons wrote:
> Is anyone else seeing this on his system?
> 
>   getUserEntryForName [] >>= print . userName
>   "wasabi"
> 
> "wasabi" happens to be the last entry in the /etc/passwd
> file, and that is what I get every time I query for an user
> that doesn't exist. The source code promises an exception,
> but I don't get one. 
> 
> Peter

Prelude System.Posix.User> getUserEntryForName [] >>= print .  userName
*** Exception: getUserEntryForName: does not exist (No such file
or directory)

linux 2.4.26, ghc 6.2.1, compiled with gcc 3.4.1 IIRC.

Groeten,
Remi

-- 
Nobody can be exactly like me. Even I have trouble doing it.


More information about the Glasgow-haskell-users mailing list