From: "Аркадий Павлик" <pvl@pskb.com>
To: community@altlinux.ru
Subject: Re: [Comm] сравнение строк в bash'e
Date: Mon, 7 Apr 2003 20:39:45 +1100
Message-ID: <200304072039.46982.pvl@pskb.com> (raw)
In-Reply-To: <Pine.LNX.4.43L.0304070958070.8365-100000@localhost.localdomain>
7 Апрель 2003 18:02, Yura Kalinichenko написал:
>
> АП> #!/bin/bash
> АП> S1='string'
> АП> S2='String'
> АП> if [ $S1=$S2 ];
> if [ "$S1" = "$S2" ];
Спасибо за участие.
Но апострофы без пробелов не спасают. А с пробелами вокруг оператора сравнения
и без апострофов работает.
--
С наилучшими пожеланиями,
Аркадий Павлик
next prev parent reply other threads:[~2003-04-07 9:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-07 6:40 Аркадий Павлик
2003-04-07 7:02 ` Yura Kalinichenko
2003-04-07 9:39 ` Аркадий Павлик [this message]
2003-04-07 10:29 ` Yura Kalinichenko
2003-04-07 7:30 ` Vitaly Lipatov
2003-04-07 9:37 ` Аркадий Павлик
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=200304072039.46982.pvl@pskb.com \
--to=pvl@pskb.com \
--cc=community@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