dspinellis / dgsh

Shell supporting pipelines to and from multiple processes
http://www.spinellis.gr/sw/dgsh/
Other
323 stars 23 forks source link

Segmentation fault in `dgsh_negotiate` when directly invoking a function #26

Closed dspinellis closed 7 years ago

dspinellis commented 7 years ago

I know this is not the way to do it, but we shouldn't segfault.

[dds@stereo dgsh]$ example/5x5.sh
example/5x5.sh: line 8:  2889 Done                    row
      2890 Segmentation fault      (core dumped) | cat
[dds@stereo dgsh]$ cat example/5x5.sh
#!/usr/bin/env dgsh

row()
{
  echo hi
}

row | cat