Article View: news.software.nntp
Article #35179Re: Can't post in a specific group
From: Richard Kettlewell
Date: Thu, 04 Feb 1999 00:00
Date: Thu, 04 Feb 1999 00:00
26 lines
1338 bytes
1338 bytes
"Antonio Coloma" <acoloma@ctv.es> writes:
> Solaris 2.7 have a "true"command but not a "yes" one.
> What must "yes" command do?
It's supposed to output its arguments repeatedly. If there are no
arguments then it outputs "y" repeatedly. Here's a shell script which
implements it:
#! /bin/ksh
set -e
doit() {
while :; do
echo "$@"
done
}
if [ "$#" = 0 ]; then
doit y
else
doit "$@"
fi
If you install the GNU Shell Utilities there's a version of `yes'
there.
Technical Details
Message-ID:
<8490eeqorj.fsf@chiark.greenend.org.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<78q3es$2fl$1@lola.ctv.es> <78q5uj$13d$1@canoe.xcski.com><79bo2i$bd1$1@lola.ctv.es> <79btci$50n$1@canoe.xcski.com> <84aeyuqtvs.fsf@chiark.greenend.org.uk> <79c31g$fnu$1@lola.ctv.es>Show Full Headers
Complete Article Headers
Message-ID: <8490eeqorj.fsf@chiark.greenend.org.uk> Subject: Re: Can't post in a specific group Date: Thu, 04 Feb 1999 00:00:00 +0000 From: Richard Kettlewell <richardk@chiark.greenend.org.uk> References: <78q3es$2fl$1@lola.ctv.es> <78q5uj$13d$1@canoe.xcski.com><79bo2i$bd1$1@lola.ctv.es> <79btci$50n$1@canoe.xcski.com> <84aeyuqtvs.fsf@chiark.greenend.org.uk> <79c31g$fnu$1@lola.ctv.es> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 440579193 Mail-Copies-To: never Organization: Enemies of... Newsgroups: news.software.nntp Originator: richardk@news.chiark.greenend.org.uk ([127.0.0.1])