Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPR#5996: ocamlbuild -build-dir dangerous behaviour #158

Open
damiendoligez opened this issue Feb 24, 2017 · 0 comments
Open

MPR#5996: ocamlbuild -build-dir dangerous behaviour #158

damiendoligez opened this issue Feb 24, 2017 · 0 comments

Comments

@damiendoligez
Copy link
Member

PR transferred from https://caml.inria.fr/mantis/view.php?id=5996

I run this command :

ocamlbuild -build-dir ../../toto ..

which did not work

+ mkdir /home/william/tmp/test/test2/..
mkdir: impossible de créer le répertoire « /home/william/tmp/test/test2/.. »: Le fichier existe
Command exited with code 1.
Failure:
  Error during command "mkdir /home/troit/tmp/test/test2/..": My_std.Exit_with_code(10).

then I did this :

ocamlbuild -build-dir '~/svn/build'

which created the directory ~ in the repository where I executed ocamlbuild

Then I wanted to remove the directory :

rm -Rf ~

:-|
Don't explain you what the problem is. Felt like a newbe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants