ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Levin Stanislav <slev@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: [devel] Вопрос про time
Date: Wed, 22 May 2019 12:10:38 +0300
Message-ID: <4d964ecf-ddf1-1328-069a-625b57da637f@altlinux.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 1132 bytes --]

Всем привет!

В одном из собираемых проектов для тестирования используется `time`
(зарезервированное слово bash), используется так:

function main() {
    time (
        test_cert_import_root || exit $?
        test_cert_import_server || exit $?
        test_cert_missing_intermediate || exit $?

        test_chain_unsafe_trust_then_verify || exit $?
        test_chain_fail_no_root || exit $?
        test_chain_import || exit $?

        test_leaf_import || exit $?
        test_leaf_fail_no_root || exit $?
    )
}

При запуске ошибка:

line 472: syntax error near unexpected token `newline'
line 472: `    time ('


Вызывается при этом:

$ type time
time является /usr/bin/time


Как можно заставить bash применить ключевое слово? Да и есть ли оно "у
нас"? Речь о:

$ bash --version
GNU bash, version 4.4.23(1)-release (x86_64-alt-linux-gnu)


Спасибо!


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

             reply	other threads:[~2019-05-22  9:10 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22  9:10 Levin Stanislav [this message]
2019-05-22  9:22 ` Dmitry V. Levin
2019-05-22  9:30   ` Levin Stanislav
2019-05-22 10:46     ` Levin Stanislav
2019-05-22 10:53       ` Dmitry V. Levin
2019-05-22 11:00         ` Levin Stanislav
2019-05-22 14:37 ` Alexey Tourbin
2019-05-22 14:48   ` Dmitry V. Levin
2019-05-22 14:57     ` Levin Stanislav
2019-05-22 15:03       ` Dmitry V. Levin
2019-05-22 15:06         ` Anton Farygin
2019-05-22 15:17           ` Dmitry V. Levin
2019-05-22 17:54             ` Anton Farygin
2019-05-22 18:40               ` Dmitry V. Levin
2019-05-23  4:46                 ` Anton Farygin
2019-05-22 18:57               ` Dmitry V. Levin
2019-05-23  4:35                 ` Anton Farygin
2019-05-23  4:48                 ` Anton Farygin

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=4d964ecf-ddf1-1328-069a-625b57da637f@altlinux.org \
    --to=slev@altlinux.org \
    --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