Comments (9)
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 getsh: 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.
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.
I agree.
The temporary hack is ln -sf bash /bin/sh
.
from mpp-language-blender.
I think I've found a good way to fix this!
from mpp-language-blender.
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.
The new version will be in opam when ocaml/opam-repository#1271 is merged.
Thank you Christophe.
from mpp-language-blender.
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.
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.
(closed with 904dc97 )
from mpp-language-blender.
Related Issues (20)
- error handling
- check if value of variable equals some constant HOT 3
- relative file path handling HOT 1
- elseifdef documented but commented out HOT 2
- Lexer captures newline after `else` HOT 1
- opam file in repository is absent HOT 1
- opam package HOT 1
- locations in foreign code: level 2 is missing HOT 1
- compatibility with ocaml < 4.02.0 HOT 1
- don't print target language locations when it's inside string literals (or comments)? HOT 1
- Stack overflow
- ideas_draft
- bash output adds new lines HOT 2
- bug: Sys_error "too many opened files" HOT 1
- OCaml 5 friendly version
- Errors should identify the program
- library function corresponding to app HOT 1
- remove extra directory level HOT 1
- please provide documentation HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpp-language-blender.