ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Alexander E. Syasin" <sae@it.yartelecom.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] bash
Date: Fri Feb  8 11:39:13 2002
Message-ID: <20020208114332.B3307@it.yartelecom.ru> (raw)
In-Reply-To: <1885704841.20020208112649@beep.ru>

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

> тут столкнулся со следующей проблемой:
> 
> [user@host:~]$ echo $((07+1))
> 8
> [user@host:~]$ echo $((08+1))
> bash: 08: value too great for base (error token is "08")
> 
> Аналогично и для 09. Чем эти 08 и 09 принципиально отличаются от
> 01..07? Как с эти бороться?
я точно не уверен(пускай меня поправят)
но если перед числом стоит 0 то это 8-ричная система

bash-2.04$ echo $((08+1))
bash: 08: value too great for base (error token is "08")
bash-2.04$ echo $((8+1))
9
bash-2.04$ echo $((9+1))
10
bash-2.04$ echo $((0x9f+1))
160
bash-2.04$

> 
> -- 
> Best regards,
>  Vladimir                          mailto:vkarpinsky@beep.ru
> 
> 
> _______________________________________________
> Mandrake-russian mailing list
> Mandrake-russian@altlinux.ru
> http://altlinux.ru/mailman/listinfo/mandrake-russian
> 
> 

-- 
+> У Вас еще лапша на ушах не обсохла 

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

  parent reply	other threads:[~2002-02-08 11:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-08 11:22 Vladimir Karpinsky
2002-02-08 11:30 ` "Баталов Григорий"
2002-02-08 11:40   ` Re[2]: " Vladimir Karpinsky
2002-02-11 12:26     ` [mdk-re] bash Mikhail Zabaluev
2002-02-08 11:39 ` Alexander E. Syasin [this message]
2002-02-08 12:05   ` Re[2]: [mdk-re] bash Vladimir Karpinsky
2002-02-08 12:15     ` Eugene Pazhitnov
2002-02-08 22:29       ` Re[4]: " Vladimir Karpinsky
2002-02-08 13:08     ` Re[2]: " Eugene Pazhitnov
2002-02-09 19:58       ` [mdk-re] Re: bash; date Michael Shigorin
2002-02-09 22:59         ` Vladimir Karpinsky
2002-02-08 11:41 ` [mdk-re] bash Andrew Borodin

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=20020208114332.B3307@it.yartelecom.ru \
    --to=sae@it.yartelecom.ru \
    --cc=mandrake-russian@altlinux.ru \
    /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