9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plan9ports under windows/cygwin?
@ 2007-10-25 15:55 Paul Lalonde
  2007-10-25 16:00 ` Iruata Souza
  2007-10-25 16:30 ` Skip Tavakkolian
  0 siblings, 2 replies; 10+ messages in thread
From: Paul Lalonde @ 2007-10-25 15:55 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've just changed employers (now at Intel, Neoptica having been  
absorbed late last week), and I'm obliged to work under Windows.
Has anyone made progress getting plan9ports going under cygwin?  I'd  
rather not live without a real editor, and I'm not sure I'm ready to  
go back to wily.

Thanks,
     Paul

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFHILxspJeHo/Fbu1wRAhbOAJ0dMlXD7Gr0ew6uhEHaFzTIqmofsQCg550X
XvvhId6xDAjPyVHFT2jiHYs=
=dVZj
-----END PGP SIGNATURE-----


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 15:55 [9fans] Plan9ports under windows/cygwin? Paul Lalonde
@ 2007-10-25 16:00 ` Iruata Souza
  2007-10-25 16:08   ` Paul Lalonde
  2007-10-25 16:30 ` Skip Tavakkolian
  1 sibling, 1 reply; 10+ messages in thread
From: Iruata Souza @ 2007-10-25 16:00 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 10/25/07, Paul Lalonde <plalonde@telus.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I've just changed employers (now at Intel, Neoptica having been
> absorbed late last week), and I'm obliged to work under Windows.
> Has anyone made progress getting plan9ports going under cygwin?  I'd
> rather not live without a real editor, and I'm not sure I'm ready to
> go back to wily.
>
> Thanks,
>      Paul
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (Darwin)
>
> iD8DBQFHILxspJeHo/Fbu1wRAhbOAJ0dMlXD7Gr0ew6uhEHaFzTIqmofsQCg550X
> XvvhId6xDAjPyVHFT2jiHYs=
> =dVZj
> -----END PGP SIGNATURE-----
>

try acme sac at http://caerwyn.com/acme/

iru


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 16:00 ` Iruata Souza
@ 2007-10-25 16:08   ` Paul Lalonde
  2007-10-25 16:23     ` Eric Van Hensbergen
  2007-10-25 16:26     ` Felipe Bichued
  0 siblings, 2 replies; 10+ messages in thread
From: Paul Lalonde @ 2007-10-25 16:08 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It works fine as an editor, but if I understand correctly runs  
command lines under the hosted Inferno; is there some way I can set  
it up to run windows command line tools?  I need to run my compiler...

Paul

On Oct 25, 2007, at 9:00 AM, Iruata Souza wrote:
>
> try acme sac at http://caerwyn.com/acme/
>
> iru

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFHIL9mpJeHo/Fbu1wRAn1qAJ4zMrZ+Zyp10ybSssQWPdvr7WJ32wCgpubz
duU0qnEQgTvSaUPlOj43K5E=
=Ivnx
-----END PGP SIGNATURE-----


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 16:08   ` Paul Lalonde
@ 2007-10-25 16:23     ` Eric Van Hensbergen
  2007-10-25 16:31       ` underspecified
  2007-10-25 16:26     ` Felipe Bichued
  1 sibling, 1 reply; 10+ messages in thread
From: Eric Van Hensbergen @ 2007-10-25 16:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 10/25/07, Paul Lalonde <plalonde@telus.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> It works fine as an editor, but if I understand correctly runs
> command lines under the hosted Inferno; is there some way I can set
> it up to run windows command line tools?  I need to run my compiler...
>

The os(1) command will do that for you.  Maybe it would be slick if
acme optionally just ran every middle click through the os(1) command.
 Of course, terminal windows might need a bit more complexity - but
those are for sissies (like me) anyways.

                -eric


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 16:08   ` Paul Lalonde
  2007-10-25 16:23     ` Eric Van Hensbergen
@ 2007-10-25 16:26     ` Felipe Bichued
  2007-10-25 16:43       ` roger peppe
  1 sibling, 1 reply; 10+ messages in thread
From: Felipe Bichued @ 2007-10-25 16:26 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Hello,

You could use inferno 'os' [1] command.

eg. fn cc { os youcompiler $* }

[1] http://www.vitanuova.com/inferno/man/1/os.html

Felipe

On 10/25/07, Paul Lalonde <plalonde@telus.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> It works fine as an editor, but if I understand correctly runs
> command lines under the hosted Inferno; is there some way I can set
> it up to run windows command line tools?  I need to run my compiler...
>
> Paul
>
> On Oct 25, 2007, at 9:00 AM, Iruata Souza wrote:
> >
> > try acme sac at http://caerwyn.com/acme/
> >
> > iru
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (Darwin)
>
> iD8DBQFHIL9mpJeHo/Fbu1wRAn1qAJ4zMrZ+Zyp10ybSssQWPdvr7WJ32wCgpubz
> duU0qnEQgTvSaUPlOj43K5E=
> =Ivnx
> -----END PGP SIGNATURE-----
>


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 15:55 [9fans] Plan9ports under windows/cygwin? Paul Lalonde
  2007-10-25 16:00 ` Iruata Souza
@ 2007-10-25 16:30 ` Skip Tavakkolian
  1 sibling, 0 replies; 10+ messages in thread
From: Skip Tavakkolian @ 2007-10-25 16:30 UTC (permalink / raw)
  To: 9fans

> I've just changed employers (now at Intel, Neoptica having been  
> absorbed late last week), and I'm obliged to work under Windows.
> Has anyone made progress getting plan9ports going under cygwin?  I'd  
> rather not live without a real editor, and I'm not sure I'm ready to  
> go back to wily.

you can still use 9pm; but i agree, we (9fans) should put some
effort into getting p9p on windows.


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 16:23     ` Eric Van Hensbergen
@ 2007-10-25 16:31       ` underspecified
  2007-10-25 16:50         ` roger peppe
  0 siblings, 1 reply; 10+ messages in thread
From: underspecified @ 2007-10-25 16:31 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs; +Cc: acme-sac

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

I second that notion. It would be cool if os could recognize if the current
directory was /n/local,
and if so set the -d flag appropriately too. Any thoughts from the Acme SAC
folks?

--underspecified

On 10/26/07, Eric Van Hensbergen <ericvh@gmail.com> wrote:
>
> On 10/25/07, Paul Lalonde <plalonde@telus.net> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > It works fine as an editor, but if I understand correctly runs
> > command lines under the hosted Inferno; is there some way I can set
> > it up to run windows command line tools?  I need to run my compiler...
> >
>
> The os(1) command will do that for you.  Maybe it would be slick if
> acme optionally just ran every middle click through the os(1) command.
> Of course, terminal windows might need a bit more complexity - but
> those are for sissies (like me) anyways.
>
>                 -eric
>

[-- Attachment #2: Type: text/html, Size: 1353 bytes --]

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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 16:26     ` Felipe Bichued
@ 2007-10-25 16:43       ` roger peppe
  2007-10-25 16:52         ` Charles Forsyth
  0 siblings, 1 reply; 10+ messages in thread
From: roger peppe @ 2007-10-25 16:43 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

yeah, os(1) is your friend.

but you need to watch out for the fact that files have different names inside
inferno and out. i usually knock up a little script to translate the names
(there's no universally correct answer, so it varies somewhat each time,
depending on your conventional namespace)

for example, here's part of the script i'm using currently, running
inferno under macos, and using
the windows F# compiler running on a remote computer
(mounted on /n/remote, with /n/remote/cmd mounted on /cmd)

load regex std
assemblies=(...)

subfn ftrans {
	emuroot := ${unquote "{cat /n/remote/env/emuroot}}
	ifs := '
'
	f := $1
	if{! match '^[a-zA-Z]:[\\/]' $f} {
		if{! ~ $f '/*'}{
			f = `{pwd}^/$f
		}
		if{! ~ $f '/n/remote/*'}{
			echo $f is not in remote namespace
		}
		f = ${re s '^/n/remote' '' $f}
		f = ${re sg '/+' '\\' $emuroot/$f}
	}
	result = $f
}

fn osrun {
	os -d ${ftrans .} ${ftrans $1} ${tl $*}
}

fn fsc {
	opts := ()		# --fast-sublanguage-only
	for(i in $assemblies){
		opts = (-r $i) $opts
	}
	osrun 'C:\Program Files\FSharp-1.9.2.9\bin\fsc' $opts $* < /dev/null |
		(sed
			-e 's/
$//'
			-e '/^$/d'
			-e 's/^([a-zA-Z0-9.]+)\(([0-9]+),([0-9]+)\)/\1:\2-#0+#\3;+0/'
			-e 's/error: FS[[0-9]+: //')
}


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 16:31       ` underspecified
@ 2007-10-25 16:50         ` roger peppe
  0 siblings, 0 replies; 10+ messages in thread
From: roger peppe @ 2007-10-25 16:50 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

> I second that notion. It would be cool if os could recognize if the current
> directory was /n/local,

actually, it should be possible to do something with /prog/$pid/ns
how (and if) names in the current namespace map to external
filenames. that way you wouldn't have to special case /n/c,
or (my usual one) /n/short where i've done something like:

  bind '/n/c/Program Files/Something-1.9.2' /n/short


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

* Re: [9fans] Plan9ports under windows/cygwin?
  2007-10-25 16:43       ` roger peppe
@ 2007-10-25 16:52         ` Charles Forsyth
  0 siblings, 0 replies; 10+ messages in thread
From: Charles Forsyth @ 2007-10-25 16:52 UTC (permalink / raw)
  To: 9fans

it's helpful that most windows programs will handle / instead of \ correctly
in file names provided there's a preceding drive letter.  (drive letter? now, now, it's only 2007.)


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

end of thread, other threads:[~2007-10-25 16:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-25 15:55 [9fans] Plan9ports under windows/cygwin? Paul Lalonde
2007-10-25 16:00 ` Iruata Souza
2007-10-25 16:08   ` Paul Lalonde
2007-10-25 16:23     ` Eric Van Hensbergen
2007-10-25 16:31       ` underspecified
2007-10-25 16:50         ` roger peppe
2007-10-25 16:26     ` Felipe Bichued
2007-10-25 16:43       ` roger peppe
2007-10-25 16:52         ` Charles Forsyth
2007-10-25 16:30 ` Skip Tavakkolian

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 NNTP newsgroup(s).