Skip to content

Inconsistent output #11

@dominikh

Description

@dominikh
$ cat foo.sh
#!/bin/sh
echo $1
$ for a in {1..10}; do for b in {1..100}; do echo $b; done | go run github.com/fd0/machma@latest -- ./foo.sh "{}" | wc -l; done
95
101
101
101
99
102
100
101
100
100

One would expect the same number of output lines on each run: 100.

Comparing two runs:

$ doit() { sort <(for b in {1..100}; do echo $b; done | go run github.com/fd0/machma@latest --no-id --no-timestamp -- ./foo.sh "{}") }
$ diff -U0 <(doit) <(doit)
--- /proc/self/fd/11	2021-12-31 02:37:51.409602436 +0100
+++ /proc/self/fd/12	2021-12-31 02:37:51.409602436 +0100
@@ -30,0 +31 @@
+35 35
@@ -33 +33,0 @@
-38 38
@@ -52,0 +53,2 @@
+56 56
+57 57
@@ -66,0 +69 @@
+71 71

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions