ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Alexey Tourbin <alexey.tourbin@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [#210675] EPERM bash.git=4.2.53-alt1
Date: Fri, 27 Jul 2018 15:17:32 +0300
Message-ID: <CA+qzenk0s7XhT0Ht8yv4FpWBtG0BSED6ye_5=quZufBJMUaYuw@mail.gmail.com> (raw)
In-Reply-To: <CA+qzenn0yUbU2uj=0yBE6di_gsR73Ks0T=14DH1HKJ0ovkzHtQ@mail.gmail.com>

2018-07-24 16:07 GMT+03:00 Alexey Tourbin <alexey.tourbin@gmail.com>:
> Кстати, такая конструкция, как в
> http://git.altlinux.org/people/ldv/packages/girar.git?p=girar.git;a=blob_plain;f=gb/gb-build-task;hb=d3db7504
> в bash4 работать перестала.
>
> #!/bin/sh -e
> (
>   cmd1
>   cmd2
> )
> rc=$?
>
> Теперь cmd1 cmd2 отваливают весь скрипт по errexit.  А раньше
> отваливалось только внутри скобок.

Скрипт мигрируется так:

#!/bin/sh -e
set +e
(
  set -e
  cmd1
  cmd2
)
rc=$?
set -e

Какие-нибудь научные оценки есть, сколько таких скриптов надо мигрировать? :-)

  reply	other threads:[~2018-07-27 12:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-24  9:15 ` Aleksei Nikiforov
2018-07-24  9:25   ` Michael Shigorin
2018-07-24  9:33     ` Aleksei Nikiforov
2018-07-24  9:45       ` Alexey Tourbin
2018-07-24 11:29   ` Dmitry V. Levin
2018-07-24 12:09     ` Alexey Tourbin
2018-07-24 12:45       ` Michael Shigorin
2018-07-24 12:47         ` Anton Farygin
2018-07-24 13:07         ` Alexey Tourbin
2018-07-27 12:17           ` Alexey Tourbin [this message]
2018-07-27 12:25             ` Paul Wolneykien
2018-07-27 12:30               ` Alexey Tourbin
2018-07-27 12:36                 ` Vladislav Zavjalov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+qzenk0s7XhT0Ht8yv4FpWBtG0BSED6ye_5=quZufBJMUaYuw@mail.gmail.com' \
    --to=alexey.tourbin@gmail.com \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git