ALT Linux Team development discussions
 help / color / mirror / Atom feed
* Re: [devel] [git update] packages/zabbix: heads/master
  @ 2007-05-17  4:09 ` Slava Semushin
  2007-05-17  4:28   ` [devel] [git update] [JT] " Hihin Ruslan
  0 siblings, 1 reply; 7+ messages in thread
From: Slava Semushin @ 2007-05-17  4:09 UTC (permalink / raw)
  To: ALT Devel discussion list

2007/5/16, Vladimir V. Kamarzin <vvk / altlinux.org>:
[...]
> @@ -0,0 +1,6 @@
> +#!/bin/sh
> +if [ "$1" == "kmemsize" ]; then
> +       cat /proc/user_beancounters | grep $1 | awk -F\  '{print $3}'
> +else
> +       cat /proc/user_beancounters | grep $@ | awk -F\  '{print $2}'
> +fi

'==' это башизм. Для пущей переносимости лучше использовать '='.
Также не лишним, на мой взгляд, был бы замена cat file | grep на grep
file -- таким образом создаётся на один процесс меньше.


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

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

* Re: [devel] [git update] [JT] packages/zabbix: heads/master
  2007-05-17  4:09 ` [devel] [git update] packages/zabbix: heads/master Slava Semushin
@ 2007-05-17  4:28   ` Hihin Ruslan
  2007-05-17  4:32     ` Mikhail Gusarov
  0 siblings, 1 reply; 7+ messages in thread
From: Hihin Ruslan @ 2007-05-17  4:28 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

Здравствуйте Slava Semushin
  В сообщении от 17 мая 2007 Slava Semushin написал(a):
 > '==' это башизм.
Не надо так ругаться :)
Это не только башизм, но и сишизм и пхпишизм :)

-- 
  А ещё говорят так  (fortune):
 
________________________________________________________________________
С уважением Хихин Руслан

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] [git update] [JT] packages/zabbix: heads/master
  2007-05-17  4:28   ` [devel] [git update] [JT] " Hihin Ruslan
@ 2007-05-17  4:32     ` Mikhail Gusarov
  2007-05-17  4:34       ` Mikhail Gusarov
  0 siblings, 1 reply; 7+ messages in thread
From: Mikhail Gusarov @ 2007-05-17  4:32 UTC (permalink / raw)
  To: ALT Devel discussion list


Twas brillig at 08:28:34 17.05.2007 UTC+04 when Hihin Ruslan did gyre and gimble:

 >> '==' это башизм.

 HR> Не надо так ругаться :) Это не только башизм, но и сишизм и пхпишизм :)

bashism - это уже устоявшийся термин: конструкция bash, не входящая в синтаксис
sh стандарта POSIX/SUS.

-- 
JID: dottedmag@jabber.dottedmag.net

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

* Re: [devel] [git update] [JT] packages/zabbix: heads/master
  2007-05-17  4:32     ` Mikhail Gusarov
@ 2007-05-17  4:34       ` Mikhail Gusarov
  2007-05-17  5:03         ` Slava Semushin
                           ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mikhail Gusarov @ 2007-05-17  4:34 UTC (permalink / raw)
  To: ALT Devel discussion list


Twas brillig at 11:32:03 17.05.2007 UTC+07 when Mikhail Gusarov did gyre and gimble:

 MG> bashism - это уже устоявшийся термин: конструкция bash, не входящая в
 MG> синтаксис sh стандарта POSIX/SUS.

Вот, например, bashism-ы, проверяемые debian-овым lintian-ом:

http://lintian.debian.org/reports/Tpossible-bashism-in-maintainer-script.html

-- 
JID: dottedmag@jabber.dottedmag.net

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

* Re: [devel] [git update] [JT] packages/zabbix: heads/master
  2007-05-17  4:34       ` Mikhail Gusarov
@ 2007-05-17  5:03         ` Slava Semushin
  2007-05-17  5:06         ` Hihin Ruslan
  2007-05-17  6:15         ` Alexey Gladkov
  2 siblings, 0 replies; 7+ messages in thread
From: Slava Semushin @ 2007-05-17  5:03 UTC (permalink / raw)
  To: ALT Devel discussion list

2007/5/17, Mikhail Gusarov <dottedmag / dottedmag.net>:
>  MG> bashism - это уже устоявшийся термин: конструкция bash, не входящая в
>  MG> синтаксис sh стандарта POSIX/SUS.
>
> Вот, например, bashism-ы, проверяемые debian-овым lintian-ом:
>
> http://lintian.debian.org/reports/Tpossible-bashism-in-maintainer-script.html

Спасибо за ссылку. Сейчас добавлю к
http://freesource.info/wiki/devel/PortabilityNotes

Конкретно, про '==' есть здесь:
http://wiki.netbsd.se/index.php/The_pkgsrc_portability_guide#Other_non-standard_extensions

В NetBSD подобные патчи достаточно часто встречаются и, кстати, без
проблем принимаются апстримами.


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

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

* Re: [devel] [git update] [JT] packages/zabbix: heads/master
  2007-05-17  4:34       ` Mikhail Gusarov
  2007-05-17  5:03         ` Slava Semushin
@ 2007-05-17  5:06         ` Hihin Ruslan
  2007-05-17  6:15         ` Alexey Gladkov
  2 siblings, 0 replies; 7+ messages in thread
From: Hihin Ruslan @ 2007-05-17  5:06 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 493 bytes --]

Здравствуйте Mikhail Gusarov
  В сообщении от 17 мая 2007 Mikhail Gusarov написал(a):
 
 > Вот, например, bashism-ы, проверяемые debian-овым lintian-ом:

 > http://lintian.debian.org/reports/Tpossible-bashism-in-maintainer-sc
 >ript.html

Может и устаявшееся, но режет ухо, достаточно поменять одну букву ...
лучше уж так : bash`изм (башь`изм) или bashism

-- 
  А ещё говорят так  (fortune):
 
________________________________________________________________________
С уважением Хихин Руслан

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [devel] [git update] [JT] packages/zabbix: heads/master
  2007-05-17  4:34       ` Mikhail Gusarov
  2007-05-17  5:03         ` Slava Semushin
  2007-05-17  5:06         ` Hihin Ruslan
@ 2007-05-17  6:15         ` Alexey Gladkov
  2 siblings, 0 replies; 7+ messages in thread
From: Alexey Gladkov @ 2007-05-17  6:15 UTC (permalink / raw)
  To: ALT Devel discussion list

Mikhail Gusarov пишет:
> Вот, например, bashism-ы, проверяемые debian-овым lintian-ом:

Очень интересный этот lintian.

-- 
Rgrds, legion



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

end of thread, other threads:[~2007-05-17  6:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-17  4:09 ` [devel] [git update] packages/zabbix: heads/master Slava Semushin
2007-05-17  4:28   ` [devel] [git update] [JT] " Hihin Ruslan
2007-05-17  4:32     ` Mikhail Gusarov
2007-05-17  4:34       ` Mikhail Gusarov
2007-05-17  5:03         ` Slava Semushin
2007-05-17  5:06         ` Hihin Ruslan
2007-05-17  6:15         ` Alexey Gladkov

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