Git Product home page Git Product logo

Comments (9)

pw374 avatar pw374 commented on June 1, 2024

I discovered this recently. It's because I use Sys.command and it calls sh. So it works fine when sh is a link to bash or any not-too-poor shell, but it doesn't work when sh is a link to dash or if sh is a real old fashioned sh or equivalent.

I have to fix that but 2 ideas that I have are not good and another is kind of a pain to implement. I'll investigate more soon.

Philippe Wang

On 7 nov. 2013, at 11:59, Christophe Troestler [email protected] wrote:

If I run

mpp -so '((!' -sc '!))' -son '{{!' -scn '!}}' -soc '' -scc '' -sec '' -sos '{{}}' -its -set "filename=site/index.md" -set "page=ocaml.org/index.html.tmp" tpl/main.mpp -o "ocaml.org/index.html"
in a terminal, I get

sh: 1: Syntax error: redirection unexpected
The strings are properly escaped. Is it possible that the problem comes from mpp trying to execute commands and not escaping properly the arguments? (No time to investigate right now)


Reply to this email directly or view it on GitHub.

from mpp-language-blender.

Chris00 avatar Chris00 commented on June 1, 2024

IMHO, it is rather urgent that it is solved because this bug prevents people on up-to-date GNU/Linux systems to compile ocaml.org.

from mpp-language-blender.

pw374 avatar pw374 commented on June 1, 2024

I agree.

The temporary hack is ln -sf bash /bin/sh.

from mpp-language-blender.

pw374 avatar pw374 commented on June 1, 2024

I think I've found a good way to fix this!

from mpp-language-blender.

Chris00 avatar Chris00 commented on June 1, 2024

On Thu, 7 Nov 2013 05:46:12 -0800, Philippe Wang wrote:

I agree.

The temporary hack is ln -sf bash /bin/sh.

;-)))

from mpp-language-blender.

pw374 avatar pw374 commented on June 1, 2024

The new version will be in opam when ocaml/opam-repository#1271 is merged.

Thank you Christophe.

from mpp-language-blender.

pw374 avatar pw374 commented on June 1, 2024

I'm re opening this issue because I need further investigation: it seems that either I didn't really fix the bug, or there's a similar bug elsewhere... or I used the same "modern-shell feature" in some MPP code for ocaml.org.

from mpp-language-blender.

Chris00 avatar Chris00 commented on June 1, 2024

I confirm that indeed

mpp -so '((!' -sc '!))' -son '{{!' -scn '!}}' -soc '' -scc '' -sec '' -sos '{{<' -scs '>}}' -its  -set "filename=site/index.md" -set "page=ocaml.org/index.html.tmp" tpl/main.mpp -o "ocaml.org/index.html" 

still ends with

sh: 1: Syntax error: redirection unexpected

from mpp-language-blender.

pw374 avatar pw374 commented on June 1, 2024

(closed with 904dc97 )

from mpp-language-blender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.