ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] Вопрос про time
@ 2019-05-22  9:10 Levin Stanislav
  2019-05-22  9:22 ` Dmitry V. Levin
  2019-05-22 14:37 ` Alexey Tourbin
  0 siblings, 2 replies; 18+ messages in thread
From: Levin Stanislav @ 2019-05-22  9:10 UTC (permalink / raw)
  To: ALT Linux Team development discussions


[-- 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 --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-05-23  4:48 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22  9:10 [devel] Вопрос про time Levin Stanislav
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

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