Skip to content

Print message when a child seg faults, just like other shells #722

@andychu

Description

@andychu

bash:

$ build/mycpp.sh osh-eval-demo 

...

types/oil-slice.sh: line 15: 20263 Done                    echo 'echo hi'
     20264 Segmentation fault      (core dumped) | $osh_eval

oil:

[osh] ~/git/oilshell/oil$ build/mycpp.sh osh-eval-demo

arg 'hi'
    echo 'echo hi' | $osh_eval
                     ^~~~~~~~~
types/oil-slice.sh:24: fatal: Exiting with status 139 (command in PID 20150)
    echo 'echo hi' | $osh_eval
                   ^
types/oil-slice.sh:24: fatal: Exiting with status 139 (pipeline invoked from PID 20150)
    types/oil-slice.sh demo _bin/osh_eval.dbg
    ^~~~~~~~~~~~~~~~~~
build/mycpp.sh:614: fatal: Exiting with status 139 (command in PID 20149)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions