caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [oliver: Re: [Caml-list] Unix.chmod => what codes for what mode?!]
@ 2004-04-23 20:09 Oliver Bandel
  2004-04-23 21:08 ` Basile STARYNKEVITCH
  0 siblings, 1 reply; 3+ messages in thread
From: Oliver Bandel @ 2004-04-23 20:09 UTC (permalink / raw)
  To: caml-list

----- Forwarded message from oliver -----

To: Richard Jones <rich@annexia.org>
Subject: Re: [Caml-list] Unix.chmod => what codes for what mode?!

On Fri, Apr 23, 2004 at 07:01:02PM +0100, Richard Jones wrote:
> On Fri, Apr 23, 2004 at 07:16:34PM +0200, Oliver Bandel wrote:
> > Hello,
> > 
> > The Unix.chmod function is bad documented.
> > 
> > Seems that I have to try out all possible values
> > and check the results with the command line tools?
> > 
> > 
> > Or is there any possibility to predict it's behaviour?!
> 
> Almost certainly you're not using octal numbers right.  The format
> for octal numbers in OCaml is different from C, for example:
> 
> Unix.chmod filename 0o755
> 
> would have the same effect as:
> 
> % chmod 755 filename


Would be nice if this litte more of explanation could be added to the
reference Manual. This is a hint, which makes readability/understanding
much more easy.

Ciao,
   Oliver

----- End forwarded message -----

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 3+ messages in thread
* [oliver: Re: [Caml-list] Unix.chmod => what codes for what mode?!]
@ 2004-04-23 20:09 Oliver Bandel
  0 siblings, 0 replies; 3+ messages in thread
From: Oliver Bandel @ 2004-04-23 20:09 UTC (permalink / raw)
  To: caml-list

----- Forwarded message from oliver -----

To: Richard Jones <rich@annexia.org>
Subject: Re: [Caml-list] Unix.chmod => what codes for what mode?!

On Fri, Apr 23, 2004 at 07:01:02PM +0100, Richard Jones wrote:
> On Fri, Apr 23, 2004 at 07:16:34PM +0200, Oliver Bandel wrote:
> > Hello,
> > 
> > The Unix.chmod function is bad documented.
> > 
> > Seems that I have to try out all possible values
> > and check the results with the command line tools?
> > 
> > 
> > Or is there any possibility to predict it's behaviour?!
> 
> Almost certainly you're not using octal numbers right.  The format
> for octal numbers in OCaml is different from C, for example:
> 
> Unix.chmod filename 0o755
> 
> would have the same effect as:
> 
> % chmod 755 filename

OK, thanks. :)


Ciao,
   Oliver

----- End forwarded message -----

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-04-23 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-23 20:09 [oliver: Re: [Caml-list] Unix.chmod => what codes for what mode?!] Oliver Bandel
2004-04-23 21:08 ` Basile STARYNKEVITCH
  -- strict thread matches above, loose matches on Subject: below --
2004-04-23 20:09 Oliver Bandel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).