argos
argos copied to clipboard
Cannot use JavaScript (with node) with Argos
I have two scrips that produce the same output:
✦ ↳ ./gmail.1m.sh
Test
---
✦ ↳ ./gmail.1m.js
Test
---
✦ ↳ diff <(./gmail.1m.sh) <(./gmail.1m.js)
✦ ↳
The JavaScript file:
#!/usr/bin/env node
console.log('Test');
console.log('---');
The bash file:
#!/bin/bash
echo 'Test'
echo '---'
However, one works, one doesn't.
I have two scrips that produce the same output:
✦ ↳ ./gmail.1m.sh Test --- ✦ ↳ ./gmail.1m.js Test --- ✦ ↳ diff <(./gmail.1m.sh) <(./gmail.1m.js) ✦ ↳
The JavaScript file:
#!/usr/bin/env node console.log('Test'); console.log('---');
The bash file:
#!/bin/bash echo 'Test' echo '---'
However, one works, one doesn't.
I have the same issue, tho using process.stdout.write will probably fix
Hello, I confirm the same issue even using process.stdout.write
instead of console.log