Skip to content

expressions should be tagged oil:all #1148

Closed
@andychu

Description

@andychu

Analogous to #1147

I fixed this case in the last release:

var x = $(false)  # now command_sub_errexit is on

But there is still stuff like this:

$ bin/osh -c 'var x = "foo:bar"; IFS=:; var y = $(write -- $x); echo $y';
foo
bar

That is bad. So I think it must be oil:all, not just command_sub_errexit

The issue is that var y = $(write -- $x) should behave the same way regardless of context. Following the local reasoning principle

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions