public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: running mks toolkit and cygwin on same machine
@ 2002-07-10  4:48 John Vincent
  2002-07-10  8:26 ` Charles Wilson
  0 siblings, 1 reply; 31+ messages in thread
From: John Vincent @ 2002-07-10  4:48 UTC (permalink / raw)
  To: robert.collins; +Cc: cygwin

Hi,

I guess you'll hate me for mentioning this, but if
it's going into cygutils, please implement the
options --help and --version to do the obvious things.

Unless you're going to do a couple of pages of text for
info/man etc. :-))


/John Vincent.


>----- Original Message -----
>From: "Christopher Faylor" <cgf@redhat.com>
>Sent: Wednesday, July 10, 2002 2:51 PM
>
>
>
>>On Wed, Jul 10, 2002 at 02:48:52PM +1000, Robert Collins wrote:
>> >Why not just roll-your own 'rev'?
>..
>> >Compile with
>> >g++ -o rev.exe rev.cc
>>
>>Sounds like a candidate for cygutils...
>
>Fine by me. It's probably even codeable in bash/ash scripting, but I'm >not 
>a
>shell guru.
>And, it's hardly likely to require maintenance :}.
>
>Rob
>


_________________________________________________________________
Join the worldÂ’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread
* Re: running mks toolkit and cygwin on same machine
@ 2002-07-09 22:12 Robert Collins
  2002-07-09 22:14 ` Christopher Faylor
  2002-07-10  9:28 ` Nicholas Wourms
  0 siblings, 2 replies; 31+ messages in thread
From: Robert Collins @ 2002-07-09 22:12 UTC (permalink / raw)
  To: cygwin; +Cc: Randall R Schulz, Thomas Baker

Why not just roll-your own 'rev'?

Included is a trivial 'rev.cc' that will handle any size argument list that
cygwin is able to pass it. It should include <algorithm> to support gcc 3.1,
but for some reason it couldn't process templates when I included that.
Sigh.

Compile with
g++ -o rev.exe rev.cc

Rob

====
// Licenced under the GNU General Public Licence version 2.0 or greater, a
copy of which can be obtained
// from http://www.gnu.org
//
// Copyright (c) 2002 Robert Collins.

#include <vector>
#include <iostream>
#include <algo.h>

template <class T> struct print : public unary_function<T, void>
{
  print(ostream& out) : os(out) {}
  void operator() (T x) { os << x << ' '; }
  ostream& os;
};

int main (int argc, char **argv)
{
  vector <char *> args;
  // assumes argv[0] is this process. This can be incorrect with some uses
  // of exec, but should be fine for shell scripts
  for (int n=1; n < argc; ++n)
    args.push_back (argv[n]);
  for_each (args.rbegin() ,args.rend (), print<char *>(cout));
}
===


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread
* running mks toolkit and cygwin on same machine
@ 2002-07-09  9:02 Scott Dudley
  2002-07-09 20:30 ` Paul Coltrin
  0 siblings, 1 reply; 31+ messages in thread
From: Scott Dudley @ 2002-07-09  9:02 UTC (permalink / raw)
  To: cygwin


does anyone have experiences with running mks toolkit and cygwin on the 
same machine?  my company's customers run mks but i'd very much like to 
attempt a cygwin test on one of these systems.

many thanks.

-- 

Regards,

Scott Dudley

SPAMMERSNEEDNTBOTHER



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

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

end of thread, other threads:[~2002-07-11  3:07 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-10  4:48 running mks toolkit and cygwin on same machine John Vincent
2002-07-10  8:26 ` Charles Wilson
2002-07-10  8:36   ` Charles Wilson
  -- strict thread matches above, loose matches on Subject: below --
2002-07-09 22:12 Robert Collins
2002-07-09 22:14 ` Christopher Faylor
2002-07-09 23:22   ` Robert Collins
2002-07-10  8:13   ` Charles Wilson
2002-07-10  8:19     ` Charles Wilson
2002-07-10  8:37     ` Conrad Scott
2002-07-10  9:19       ` Charles Wilson
2002-07-10  9:26         ` Conrad Scott
2002-07-10  9:28 ` Nicholas Wourms
2002-07-09  9:02 Scott Dudley
2002-07-09 20:30 ` Paul Coltrin
2002-07-09 21:49   ` Thomas Baker
2002-07-09 21:59     ` Thomas Baker
2002-07-09 22:09       ` Randall R Schulz
2002-07-10  6:35         ` Thomas Baker
2002-07-10  6:49           ` David Starks-Browning
2002-07-10  7:49             ` Thomas Baker
2002-07-09 23:02       ` scowles
2002-07-10  6:39         ` Thomas Baker
2002-07-10  8:00           ` Charles Wilson
2002-07-10 22:47           ` scowles
2002-07-10  7:50         ` Charles Wilson
2002-07-10  0:32       ` Jon LaBadie
2002-07-10  8:26         ` Charles Wilson
2002-07-10  0:14     ` Jon LaBadie
2002-07-10  6:48       ` Thomas Baker
2002-07-10  7:26         ` Randall R Schulz
2002-07-10  5:00   ` Jason Tishler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).