Yurik changed the topic of #ocaml to: http://icfpcontest.cse.ogi.edu/ -- OCaml wins | http://www.ocaml.org/ | http://caml.inria.fr/oreilly-book/ | http://icfp2002.cs.brown.edu/ | SWIG now supports OCaml| Early releases of OCamlBDB and OCamlGettext are available
pattern__ has quit ["..."]
pattern_ has quit ["..."]
pattern_ has joined #ocaml
systems has joined #ocaml
systems has left #ocaml []
rox has quit [Read error: 54 (Connection reset by peer)]
rox has joined #ocaml
lament has quit [Remote closed the connection]
mattam_ has quit ["zZz"]
<pattern_> how would i go about parsing the output of a shell command i had run with Unix.system ?
foxster has quit [Read error: 104 (Connection reset by peer)]
mellum has quit ["zzZ"]
lament has joined #ocaml
TachYon has joined #ocaml
TachYon has quit [Remote closed the connection]
rox is now known as rox|unternehmen
systems has joined #ocaml
systems has quit ["Client Exiting"]
det has joined #ocaml
Kinners has joined #ocaml
<pattern_> when i use Unix.chdir to change directories it works while the program is running, but as soon as the program quits i am back in my starting directory
<pattern_> is there any way to change directories such that that's the directory i'll find myself in when my program quits?
lament has quit [Remote closed the connection]
<det> pattern_, probally not
<det> pattern_, you'd have to tell the shell to change directories somehow
<pattern_> hmm... maybe Unix.system "cd .." will work
<pattern_> but i doubt it
<Kinners> you can't really change the enviroment of a different process
<pattern_> well, that's ok... i can live without it
<pattern_> thanks, det & kinners
<Kinners> one way is to write a shell script that does something like cd `foobar`, where foobar prints out a dirname, and run the script as '. /path/to/myscript'
<pattern_> yeah, i thought of that
<pattern_> but the problem is that my program may print other things too
<pattern_> in which case it'll fuck up cd
<pattern_> i guess maybe there's a way to print the dir to cd to on a special filehandle reserved especially for cd to read from
<Kinners> are you using stderr?
<pattern_> yeah, stderr would be one possibility
<pattern_> but i think it's also possible to leave stderr and stdout both free and go for yet another filedescriptor
<pattern_> and then my script would check for output on that special filedescriptor and if there is output cd there, and not cd otherwise
<Kinners> or just write it to a temporary file
<pattern_> yeah, that's a good idea too
<pattern_> or i can create a socket and read it from there ;)
lament has joined #ocaml
foxster has joined #ocaml
<pattern_> $ cat foo.ml
<pattern_> (* " *)
<pattern_> $ ocamlc -c -pp camlp4o -g foo.ml
<pattern_> File "foo.ml", line 1, characters 0-8:
<pattern_> Lexing error: string not terminated
<pattern_> Preprocessor error
<pattern_> interesting that it would balk at an unterminated string within a comment
det has quit ["ircII EPIC4-1.1.2 -- Are we there yet?"]
lament is now known as Rohan
Rohan is now known as lament
mattam has joined #ocaml
xxd has joined #ocaml
foxster has quit [Read error: 104 (Connection reset by peer)]
Kinners has left #ocaml []
lament has quit ["Did you know that God's name is ERIS, and that He is a girl?"]
musasabi has quit [adams.freenode.net irc.freenode.net]
musasabi has joined #ocaml
TachYon76 has joined #ocaml
TachYon76 has quit [Remote closed the connection]
Kinners has joined #ocaml
skylan has quit [Read error: 54 (Connection reset by peer)]
skylan has joined #ocaml
Yurik has joined #ocaml
rox|unternehmen is now known as rox
taw has joined #ocaml
<Yurik> taw: hi
<taw> hi
<taw> hehe
<taw> my articles about ocamllex and ocamlyacc on polish wikipedia are on top in google search ;)
* Yurik is reading :)
<taw> hehe, it can be probably read without knowning any polish
<taw> it consists mostly of source code
<Yurik> aha :) but anyway I understand 80% of text :)
<taw> good
<taw> somebody started russian wikipedia too on http://ru.wikipedia.org/
<taw> hmm
<taw> my cyryllic fonts are very bad here
<Yurik> I need to start ua.wikipedia ;)
<taw> you would just have to translate Language.php to ukrainian and send it to us
<taw> and of course find someone who would want to write there
<Yurik> :)
<Yurik> where can I get that language.php?
<taw> it's on cvs
<Yurik> is this a right source to start new edition - http://www.wikipedia.org/wiki/Wikipedia:Create_a_new_language_in_Wikipedia
<Yurik> ?
<taw> yes
<taw> it's explained there
<Yurik> ok. later I'll think on this subject :)
rox has quit [Remote closed the connection]
Kinners has left #ocaml []
rox has joined #ocaml
<Yurik> rox: hi
<rox> Yurik: hello
<taw> i think polish wikipedia will reach 8000 articles tomorrow
<Yurik> cool!
<taw> hehe
<taw> yes
<taw> i remember it when it had 500 articles
<taw> it was just a year ago
<Yurik> hehe
<taw> start ukrainian wikipedia !
<taw> in two years people will ask you if you are 'this' Yurik ;)
<taw> already happened to me ;)
<taw> and it was really funny ;)
<Yurik> hehe :) I really want to start and may be supply w/ some english info on Ukraine -- it is very weak now, as I see
<Yurik> just need to find some spare time for it
rox has quit [Killed (NickServ (Nickname Enforcement))]
<taw> hmm
<taw> i'll have to get author of ocamllex
* Yurik is reading polish info on Ukraine :-)
rox has joined #ocaml
<taw> hmm
<taw> somobody wrote today articles about half of ss divisions
<taw> wait a moment, i'll make a link from Ukraina to article about ukrainian ss division
<Yurik> ok :-) It was quite popular topic in western ukraine last year -- they're (ss division "Halichyna") officialy veterans of WWII now
<taw> a
<taw> link done
<taw> how much is hrywna worth now ?
<Yurik> k
<Yurik> about $5,35
<Yurik> and about 5,6 EU
<taw> hoho
<taw> www.oanda.com says
<taw> Monday, March 10, 2003
<taw> 1 Euro = 6.05121 Ukraine Hryvnia
<taw> 1 Ukraine Hryvnia (UAH) = 0.16526 Euro (EUR)
<Yurik> bank.gov.ua sais official: 5,88 for 1 EU and 5,33 for 1 $
<Yurik> it differs slightly positive or negative at cash currency exchanges
<taw> what inflation do you have ?
<Yurik> not very big last time
<Yurik> i don't know official number
<Yurik> let me look about officials on this subject
<Yurik> seems that slightly less than 10%
<taw> ok
rox has quit [Read error: 104 (Connection reset by peer)]
smklsmkl has joined #ocaml
smkl has quit [Read error: 54 (Connection reset by peer)]
smklsmkl is now known as smkl
rox has joined #ocaml
systems has joined #ocaml
systems has quit ["Client Exiting"]
mellum has joined #ocaml
<mellum> hi
<Yurik> mellum: hi
mrvn_ has joined #ocaml
gene9 has joined #ocaml
gene9 has quit [Client Quit]
mrvn has quit [Read error: 60 (Operation timed out)]
mattam_ has joined #ocaml
mattam has quit [Read error: 60 (Operation timed out)]
TachYon has joined #ocaml
rox has quit ["Client Exiting"]
rox has joined #ocaml
TachYon has quit [Remote closed the connection]
TachYon has joined #ocaml
Yurik_ has joined #ocaml
Yurik has quit [Read error: 104 (Connection reset by peer)]
<taw> ok
<taw> who's responsible for ocamllex ?
shea has joined #ocaml
<whee> onos it's shea
<shea> i found you, now you pay
TachYon has quit [Remote closed the connection]
pattern_ has quit ["..."]
TachYon has joined #ocaml
TachYon has quit [Remote closed the connection]
pattern_ has joined #ocaml
TachYon has joined #ocaml
pattern_ has quit [Client Quit]
taw has left #ocaml []
gene9 has joined #ocaml
TachYon has quit [Remote closed the connection]
rox has quit [Read error: 54 (Connection reset by peer)]
gene9 has quit [Client Quit]