Menu

#15 The state of "set -e" is lost after "set --"

1.0
closed
nobody
None
2020-04-23
2020-04-16
No

Using Schily Tools 2020-03-27 on Debian 10.3.

foo() {
  echo "@1 $-" # => <empty>

  set -eu
  echo "@2 $-" # => eu

  set --
  echo "@3 $-" # => u
}
foo
echo "@4 $-" # => u

Related

Tickets: #19

Discussion

  • Jörg Schilling

    Jörg Schilling - 2020-04-17

    This problem is present in the january version but I cannot repeat it in the current version that was planned to be published yesterday.

    Please have a look for the new version today or tomorrow.

     

    Last edit: Jörg Schilling 2020-04-17
  • Jörg Schilling

    Jörg Schilling - 2020-04-17
    • status: open --> closed
     
  • Koichi Nakashima

    Thank you for reply. It seems to have been fixed in Schily Tools 2020-04-18. However another problem occurred.
    It may be related to this ticket, but it looks like different problem too. So I created new ticket [#19].

     

    Related

    Tickets: #19

  • Jörg Schilling

    Jörg Schilling - 2020-04-22

    OK, so it seems that the original cause for the problem had not been fixed.

    I have another patch to fix the orginal problem...

     
  • Koichi Nakashima

    It seems to be working perfectly! Thank you!

     

Log in to post a comment.

MongoDB Logo MongoDB