Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: malc <av1474@comtv.ru>
To: "Ricardo Catalinas Jiménez" <jimenezrick@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Unix.getlogin () fails when stdin is redirected
Date: Wed, 21 Mar 2012 06:17:07 +0400 (MSK)	[thread overview]
Message-ID: <alpine.LNX.2.00.1203210615050.4731@linmac> (raw)
In-Reply-To: <20120320175113.GC935@viper.local>

On Tue, 20 Mar 2012, Ricardo Catalinas Jim?nez wrote:

> I found out the next issue in this simple code:
> 
> let () =
>     print_endline "Hello";
>     print_endline (Unix.getlogin ())
> 
> Running in the normal case, with `./a.out' gives:

FWIW on my machine (linux) calling getlogin from any PTY always fails
(be it screen or some sort of X terminal)

[..snip..]

-- 
mailto:av1474@comtv.ru

  parent reply	other threads:[~2012-03-21  2:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20 17:51 Ricardo Catalinas Jiménez
2012-03-20 18:07 ` [Caml-list] " Ricardo Catalinas Jiménez
2012-03-20 18:28   ` David House
2012-03-20 18:48     ` Till Varoquaux
2012-03-20 19:41       ` Yaron Minsky
2012-03-20 20:12         ` Till Varoquaux
2012-03-20 22:45           ` oliver
2012-03-21 12:26             ` Török Edwin
2012-03-21  2:17 ` malc [this message]
2012-03-21 11:29   ` [Caml-list] " Gerd Stolpmann
2012-03-21 17:59     ` malc

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.1203210615050.4731@linmac \
    --to=av1474@comtv.ru \
    --cc=caml-list@inria.fr \
    --cc=jimenezrick@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox