delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/27/09:43:40

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; q=dns; s=default; b=fWEQ
6ao14xUKOPgpT8Um+dVCsC921+0N1LuK6OfoUolZnFtFyETsuYbJp+uE+VjlYmFS
KC72UfRJj3DB7Q4LSLHeg/7WCkL2sxCM6EX7lJ2c76VBNvGt7tkSVCnTYapMFXuV
Ia68qRkbOm+S1iO5ow/ZYmX+Y6XP3XrzcPhFHQc=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type; s=default; bh=mCU9CZdU4R
I9yJp9D9z/ez8YPQ4=; b=KcYykM5JxdHhlYQOqpujUs9ixmqC64TRRYlOxcI6h1
Y54yt24R3XQIasJAvcusoF/Kw3lS4+rqATSawIruQKysdtsOvNsuCHPjyirHxCaQ
MZLVCX/SDkbZRiH95eFZyH0xfzEzpBs9NmzgYYun7Mn0gB9VM+WGcXDduq3tnle2
4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=ksh, mksh, Ubuntu's, separators
X-HELO: mx1.redhat.com
Subject: Re: Error using builtin print command in mksh
To: cygwin AT cygwin DOT com
References: <1461761334 DOT 5720b5362ea0f AT imp DOT free DOT fr>
From: Eric Blake <eblake AT redhat DOT com>
Openpgp: url=http://people.redhat.com/eblake/eblake.gpg
Message-ID: <5720C1EE.8070608@redhat.com>
Date: Wed, 27 Apr 2016 07:43:10 -0600
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version: 1.0
In-Reply-To: <1461761334.5720b5362ea0f@imp.free.fr>
X-IsSubscribed: yes

--UbsiK51hpFhQrDOGM3AL7NboxTtO1pQbp
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On 04/27/2016 06:48 AM, leonhard DOT baumstark AT free DOT fr wrote:
> Hello,
> we are using lots of ksh scripts in mksh. They contain print commands to =
insert
> separators like ---------------- into text output files. Contrary to Ubun=
tu's
> ksh this results in the following error message:
>=20
> $ mksh -c "print ---"
> mksh: print: --: unknown option

'print' is not standardized, so you can't expect it to behave portably.
 Fix your script to use

printf -- -------

instead, and then you won't have any portability problems, whether on
cygwin or any other platform.

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--UbsiK51hpFhQrDOGM3AL7NboxTtO1pQbp
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJXIMHuAAoJEKeha0olJ0NqS+EIAKbKd5hvH3Jl14/LvNbJuSfD
5Ng1sct0HP7Va5HRxXqdHkRXUnpWbJhsWuKYbACbdYyBLAa3k+cm1HB5IJS6/ZLW
qZ5xTQ2p1fQ7TwhSNV/5bJH7H1FQPJ+GvV44AejkKRUM8VG6uydMXHpLBncVOb7A
U6nhXIRqxEx+pnOAlBWwdlh6VsCMigwmUEiu5AZqQxFj1ixhQCvUsVrcblh0I2mL
tug6l76b4yvRLR+0EPBN3lU8k9T5x18Jsq7Jd/aJirm5AQmfqk6Tx3gRxx5xtG6P
gg61DiX0KUtDIXuUolIMBRdsiJ7EK6ny2X10F2aGm3tV7gGdq74EoNKL0gRS5AQ=
=QQXQ
-----END PGP SIGNATURE-----

--UbsiK51hpFhQrDOGM3AL7NboxTtO1pQbp--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019