shelljs-transpiler icon indicating copy to clipboard operation
shelljs-transpiler copied to clipboard

:shell: Easily transpile Bash to ShellJS

Results 17 shelljs-transpiler issues
Sort by recently updated
recently updated
newest added

check new background

Seems it will fail if when calling a command which name start with a digit. probably around : https://github.com/nfischer/shelljs-transpiler/blob/a0fd697bd37573b767238a8fb2f1726d86f625fc/src/bash.ohm#L103 BTW which grammar syntax are you using ? ``` #!/bin/bash ang=1...

bug
Difficulty: easy

The 'shift' function is implemented via exec('shift') - but this doesn't/can't/shouldn't change the process.argv array. thus the value of, e.g., $1 does not change after shift. Seems that process.argv needs...

enhancement

Seems that $0 is like 'sh'? shouldn't it be the path to the '.js' file? preferably some absolute version of the path to the js file?

enhancement

Add in translation for `&&` and `||` as follows: ``` bash $ true && echo 'hi' hi $ false || echo 'hi' hi ``` In general, it may be tough...

enhancement
help wanted
translator
Difficulty: medium

First attempted use of sh2js and it gives me; Unable to parse script Line 26, col 26: 25 | function isint { > 26 | expr $1 + 0 >/dev/null...

Symptoms: Unable to parse script Unable to identify parsing failure (please include your full script in the bug report) Please file a bug report at https://github.com/nfischer/shelljs-transpiler Tested with versions /usr/share/misc/config.guess:timestamp='2013-06-10'...

Right now it's a parse error to write something like: ```sh echo hello world && echo bye ``` The first `&` is interpreted as "run in background job" (obviously the...

bug
enhancement
help wanted
Difficulty: medium

We no longer recommend global imports for ShellJS, so this transpiler shouldn't default to that. We should just have a different default checkbox value for "include in global namespace". ---...

enhancement
help wanted
Difficulty: easy

Looks like `sed` doesn't support options. Probably a regression. The `-i` option is listed in the source, so I suspect this is just a bug with the `convertSed()` function not...

bug
help wanted
translator
Difficulty: easy