ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Speccyfighter <zxwarior@yandex.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] expr - синтаксическая ошибка
Date: Mon, 14 Jul 2014 04:37:24 +0400
Message-ID: <3314141405298244@web28g.yandex.ru> (raw)
In-Reply-To: <158541405296065@web10h.yandex.ru>



14.07.2014, 04:01, "Speccyfighter" <zxwarior@yandex.ru>:
> Сабж собсно.
>
> Система на репозитории t7
>
> $ expr --help|head -25|tail -1
>   АРГ1 * АРГ2       арифметическое произведение АРГ1 и АРГ2
>
> $ LC_ALL=C expr 4 * 4
> expr: syntax error
>
> $ info coreutils 'expr invocation'
> * Numeric expressions::         + - * / %
>
> $ rpm -qf $(which expr)
> coreutils-8.21-alt1
>
> Не фурычит.
> На что вешать, на Сизиф?
>

Упс...

$ expr 4 * 4
expr: синтаксическая ошибка

$ expr 4 \* 4
16

Beware that many operators need to be escaped  or  quoted  for  shells.

Но почему конкретно об этой операции не упоминается,
нигде, явно, что она требует экранирования, непонятно.
Какое-то расплывчатое: некоторые, может быть, наверное.
Что винить? Man с хелповником или операцию?

-- 
Лучшее - враг хорошего!
(Спектрумовский фольклор)


  reply	other threads:[~2014-07-14  0:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14  0:01 Speccyfighter
2014-07-14  0:37 ` Speccyfighter [this message]
2014-07-14  4:55   ` Andrew Borodin
2014-07-14 11:09     ` Speccyfighter

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=3314141405298244@web28g.yandex.ru \
    --to=zxwarior@yandex.ru \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

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


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