Best place to put new envvars?

2005-10-07 Thread Matthew O. Persico
I am sharing a Cygwin installation in a NetWare drive among a number of 
developers.

I want to put

export CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvs/repository

in one profile that is run by everyone AND I don't want it overwritten if I 
update Cygwin.

Where's the best place to stash this?

Thanks

--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Best place to put new envvars?

2005-10-07 Thread Matthew O. Persico
On Fri, 07 Oct 2005 19:12:30 -0700, David Rothenberger typed:
 On 10/7/2005 6:01 PM, Matthew O. Persico wrote:

 I am sharing a Cygwin installation in a NetWare drive among a
 number of developers.

 I want to put

 export CVSROOT=:pserver:[EMAIL PROTECTED]:/home/cvs/repository

 in one profile that is run by everyone AND I don't want it
 overwritten if I update Cygwin.

 Where's the best place to stash this?

 Create a file in /etc/profile.d with a .sh extension. This will be
 executed by /etc/profile. It won't be overwritten even if
 /etc/profile
 is (which will happen unless you modify /etc/profile yourself).

DUH! Of course. I have a an elaborate profile.d setup on my Linux box - I 
should have known better.
Sorry for wasting the badnwidth..
--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: sign off

2004-07-29 Thread Matthew O. Persico
On Thu, 29 Jul 2004 15:11:08 -0400, liya typed:
 delete me from this list


 --

Use the instructions that can be found at the bottom of every post:

 Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Resizable setup

2004-04-23 Thread Matthew O. Persico
On Fri, 23 Apr 2004 10:46:50 -0400 (EDT), Igor Pechtchanski typed:
 On Fri, 23 Apr 2004, Christopher Faylor wrote:

 On Thu, Apr 22, 2004 at 11:49:31PM -0400, Matthew O. Persico
 wrote:
 On Thu, 22 Apr 2004 21:57:55 -0400, Larry Hall typed:
 At 09:42 PM 4/22/2004, you wrote:
 PLEASE!!! For the love of all that is holly can the lead
 developer of
 the setup app please make it resizable!!!

 Render unto windows what is windows'.  and leave the bad
 habits there
 too.

 http://www.cygwin.com/ml/cygwin/2004-02/msg00015.html

 Rob, you mentioned before that you'd release this if that was
 the
 consensus (or something to that affect).  In my judgement,
 we've
 reached consensus (or at least hysteria).  Can you release it
 to spare
 us all these repeated pleas (and get us on to a new batch
 instead ;-)
 )?

 In response, I believe I speak for many when I say:

 http://wso.williams.edu/cpdl/sheet/han-m42c.pdf

 LOL.

 Now that's definite gold star material just for sheer cleverness.

 cgf

 Done.


Wow. I'm shocked. And honored. Thank you.

--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Resizable setup

2004-04-22 Thread Matthew O. Persico
On Thu, 22 Apr 2004 21:57:55 -0400, Larry Hall typed:
 At 09:42 PM 4/22/2004, you wrote:
 PLEASE!!! For the love of all that is holly can the lead
 developer of
 the setup app please make it resizable!!!

 Render unto windows what is windows'. and leave the bad habits
 there
 too.

 http://www.cygwin.com/ml/cygwin/2004-02/msg00015.html

 Rob, you mentioned before that you'd release this if that was the
 consensus (or something to that affect).  In my judgement, we've
 reached consensus (or at least hysteria).  Can you release it to
 spare us all these repeated pleas (and get us on to a new batch
 instead ;-) )?


In response, I believe I speak for many when I say:

http://wso.williams.edu/cpdl/sheet/han-m42c.pdf

--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Shared installs

2004-04-15 Thread Matthew O. Persico
On Thu, 15 Apr 2004 13:45:49 -0400, Larry Hall typed:
 At 12:43 PM 4/15/2004, you wrote:
 On Tue, Apr 13, 2004 at 09:01:07PM -0400, Larry Hall wrote:
 At 08:17 PM 4/13/2004, you wrote:
 How about an FAQ entry:

 How do I install Cygwin to share over a network?

 Having more than one person to be able to access a single
 shared
 instance of Cygwin it is not much different than doing a
 local
 install:

 1) Install to a network drive. Make sure the the drive
 you pick
 will have the same drive letter for everyone.
 2) On the machine you used for the install, add the DOS
 path to
 the cygwin bin to PATH
 3) Fire up a shell and type
 mount -m  remount.sh
 4) On every other user's computer, just add the cygwin
 bin to the
 PATH, execute remount.sh and give them a shortcut to
 cygwin.bat

 We try to limit FAQ entries to those that are frequently
 asked.
 This one comes up but only once in a while.  The idea is if
 the FAQ
 becomes to full of stuff, it will be too hard for anyone
 to use.  So we
 try to keep it at the manageable level by using the axiom
 above.  This
 would be a reasonable thing to add to the Users Guide IMO.
 If you're up
 to it, skim through and see if you can see a good spot to
 add it.  If you
 can create a patch, I'm sure this will get included.


 Well, I fired up cvs and tried to grab src/winsup/doc. I
 ended up with the
 whole system somehow - thank goodness we are not up on dialup.

 I figured out what needed modification and made the mods. I
 then tried
 firing up the build system to see if I didn't screw things
 up. ./configure
 seemed to work ok, but make didn't - no db2html. I searched
 all the source
 code (since I had it anyway) but didn't find any files named
 like db2html
 nor did I find any entries in any Makefiles to build it.

 Is there a single search that can be done to figure out in
 what package
 db2html might be, so I can download and continue?


 This is part of docbook but unfortunately there is no Cygwin
 package for
 docbook (at least not yet, other than the DTD and style-
 sheets).  So you'll
 need to grab docbook-tools (http://sources.redhat.com/docbook-
 tools/).

 Actually, IIRC that site is hopelessly out of date, you're better
 off grabbing
 the docbook-utils source from somewhere else.  But that's beside
 the point,
 since to build just the FAQ you don't need DocBook (that's for
 the User's
 Guide). You do need texi2html, in the tetex-bin package.  Then go
 to your build
 dir and just type 'make faq0.html' to get the FAQ-in-one-HTML-
 page.


 Actually, I had said that this wasn't really FAQ fodder at this
 point but
 suggested that it would fit in the User's Guide.


 If you really want a full DocBook install, see the cygwin-doc
 README for
 details about how I do it right now. By the way, cygwin-doc-X.YZ-
 src also
 contains just the DocBook/texinfo source for the documentation,
 though CVS
 is definitely the place for patches to the latest.


 Actually, I'm not sure that the OP wants a full DocBook install but
 given
 my comments, he was following the path that lead him there. ;-)


Thanks for all your help. I'm going to have to put this on the shelf for a few days - 
I just had a followup to my lasix procedure and my left eye is a mass of tears. I'll 
report back next week.
--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Shared installs

2004-04-13 Thread Matthew O. Persico
On Mon, 12 Apr 2004 22:51:01 -0400, Larry Hall typed:
 At 10:43 PM 4/12/2004, you wrote:
 On Mon, 12 Apr 2004 22:18:09 -0400, Christopher Faylor
 [EMAIL PROTECTED] said:
 On Mon, Apr 12, 2004 at 10:06:27PM -0400, Matthew O. Persico
 wrote:
 I installed Cygwin today at work onto a network drive.  I
 added
 the
 cygwin bin to my path and all was well.  I then added the
 path to
 a
 coworker's machine, but it failed miserably.  Then I
 remembered
 that
 there were some registry entries for mounting that needed to
 be
 installed.

 The tool you need is mount.

 Just typing mount will show you how your mount table is laid
 out.

 Typing mount -m will show you the commands to recreate the
 mount
 table on another drive (assuming consistent drive lettering).

 Even better, typing man mount will show you how to use mount.

 How about an FAQ entry:

 How do I install Cygwin to share over a network?

 Having more than one person to be able to access a single shared
 instance of Cygwin it is not much different than doing a local
 install:

 1) Install to a network drive. Make sure the the drive you pick
 will have the same drive letter for everyone.
 2) On the machine you used for the install, add the DOS path to
 the cygwin bin to PATH
 3) Fire up a shell and type
 mount -m  remount.sh
 4) On every other user's computer, just add the cygwin bin to the
 PATH, execute remount.sh and give them a shortcut to cygwin.bat


 We try to limit FAQ entries to those that are frequently asked.
 This one
 comes up but only once in a while.  The idea is if the FAQ becomes
 to full
 of stuff, it will be too hard for anyone to use.  So we try to
 keep it
 at the manageable level by using the axiom above.  This would be a
 reasonable thing to add to the Users Guide IMO.  If you're up to
 it, skim
 through and see if you can see a good spot to add it.  If you can
 create
 a patch, I'm sure this will get included.


Well, I fired up cvs and tried to grab src/winsup/doc. I ended up with the whole 
system somehow - thank goodness we are not up on dialup.

I figured out what needed modification and made the mods. I then tried firing up the 
build system to see if I didn't screw things up. ./configure seemed to work ok, but 
make didn't - no db2html. I searched all the source code (since I had it anyway) but 
didn't find any files named like db2html nor did I find any entries in any Makefiles 
to build it.

Is there a single search that can be done to figure out in what package db2html might 
be, so I can download and continue?

--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Broken install, postinstall problems

2004-04-13 Thread Matthew O. Persico
On Tue, 13 Apr 2004 00:34:32 -0400, Greg Mosier typed:
 Hi list,

 It's been a while since I've played with cygwin and I've just
 recently came back to it.  Well...  I had the same problems this
 time as I did in the past, only last time I wasn't aware that there
 was a problem.  It seems that there are quite a few users that have
 experienced this same issue, the one where the postinstall doesn't
 happen as it should.  The fix for the problem is so amazingly
 simple that all those that have looked at the problem before and
 examined the log files and didn't find the problem should be
 ashamed.

 I'm posting this to the list as I never did find a fix for it on
 the net, which I still can't believe.  When you see someone mention
 this problem tell them to have a look at setup.log.full for this:

 [base-files] action=Skip trust=curr installed=none src?=no
 categories=All, Base [Prev] ver=2.5-1

 You see, I never selected for it to skip this, where inlies a
 massive oversight on someone's part along the way.  When I setup
 cygwin I changed default to install on 'All' and for some totally
 obscure reason, it seems, when you do this, the damned installer
 decides it needs to skip base-files and aspell-dev.  Mind you, out
 of the endless packages it is amazingly odd that it decides to skip
 these two, and these two alone.

 Anyhow, I hope this helps someone.

Can this fix be applied to solve this problem:

Message-ID: [EMAIL PROTECTED]

--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Does anyone know how to invoke a bash process via a dos batch program so commands after bash execute?

2004-04-12 Thread Matthew O. Persico
On Mon, 12 Apr 2004 18:05:15 -0400, Lipin, Adam [EMAIL PROTECTED]said:
 Does anyone know how to invoke a bash process via a dos batch
 program so
 commands after bash execute?

'bash' is a red herring in this case. Try this:

batch1.bat:
REM This is batch1.bat
batch2.bat test
echo back from batch2.bat
exit

batch2.bat:
REM this is batch2.bat
echo %1
echo bash
echo %1


When I execute batch1.bat in a DOS window, I never get the echo back from batch2.bat. 
Notice I removed the exit from batch2.bat. Methinks that invoking batch2.bat replaces 
the current process (in UNIX speak) so that the rest of batch1.bat is never executed.

And now that I have shown this thread to have no Cygwin content whatsoever, I think it 
is time to end it. Or else, we're flame-bait for sure.

--
Matthew



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Fresh install missing a file?

2004-04-12 Thread Matthew O. Persico
Description:
I installed Cygwin today at work onto a network drive. I didn't choose any particular 
packages - I just took the defaults. Some of the commands I ran failed because 
cygpcre-0.dll was not found. A search on my home machine for cygp*.dll found 11 
different dlls including cygpcre-0.dll in cygwin\bin. At work, only two cygp*.dll 
files were found none of them cygpcre-0.dll.

Questions:
1) What packages do I need to install to get cygpcre-0.dll?

2) If it's that important, why isn't it installed out-of-the-box? Bug perhaps?

Thank you
--
Matt



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Shared installs

2004-04-12 Thread Matthew O. Persico

I installed Cygwin today at work onto a network drive. I added the cygwin bin to my 
path and all was well. I then added the path to a coworker's machine, but it failed 
miserably. Then I remembered that there were some registry entries for mounting that 
needed to be installed.

Rather the fish them out, I just reinstalled on her machine overwriting the network 
installation.

Is there a doc that describes specifically how to install on a network drive and get 
individual machines set up properly? Failing to find one, I think the instructions 
should be:

1) Install to a target machine.
2) Use regtool to extract the relevant parts of the registry
3) Install the registry stuff and modify the path on the target machine.

I was trying to test this, but when I tried to run regtool, all I could get was 
individual keys, not a whole tree.

Am I on the right track here?
--
Matthew



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Shared installs

2004-04-12 Thread Matthew O. Persico
On Mon, 12 Apr 2004 22:18:09 -0400, Christopher Faylor [EMAIL PROTECTED]said:
 On Mon, Apr 12, 2004 at 10:06:27PM -0400, Matthew O. Persico wrote:
 I installed Cygwin today at work onto a network drive.  I added
 the
 cygwin bin to my path and all was well.  I then added the path to
 a
 coworker's machine, but it failed miserably.  Then I remembered
 that
 there were some registry entries for mounting that needed to be
 installed.

 The tool you need is mount.

 Just typing mount will show you how your mount table is laid out.

 Typing mount -m will show you the commands to recreate the mount
 table on another drive (assuming consistent drive lettering).

 Even better, typing man mount will show you how to use mount.

How about an FAQ entry:

How do I install Cygwin to share over a network?

Having more than one person to be able to access a single shared instance of Cygwin it 
is not much different than doing a local install:

1) Install to a network drive. Make sure the the drive you pick will have the same 
drive letter for everyone.
2) On the machine you used for the install, add the DOS path to the cygwin bin to PATH
3) Fire up a shell and type
mount -m  remount.sh
4) On every other user's computer, just add the cygwin bin to the PATH, execute 
remount.sh and give them a shortcut to cygwin.bat


 cgf
 --
 Christopher Faylor
 Cygwin Project Leader
 TimeSys, Inc.

 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Problem reports:   http://cygwin.com/problems.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/
--
Donna  Matthew



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Fresh install missing a file?

2004-04-12 Thread Matthew O. Persico
On Mon, 12 Apr 2004 22:33:40 -0400, Larry Hall said:
 At 10:34 PM 4/12/2004, you wrote:
 On Mon, 12 Apr 2004 22:07:22 -0400, Christopher Faylor
 [EMAIL PROTECTED]said:

 http://cygwin.com/acronyms/#PCYMTNQREAIYR


How'd that? Thanks for pointing that out.

BTW, you might want to check the list filters. I am registered under Matthew period 
Persico at verizon point net, yet the reply I sent came from persico spot family 
circleda verizon point net. That's my fault in handling personalities in my mailer, 
but I thought you had to be registered to post and reply? Or can anyone reply, but 
only members can post new messages?
--
Matthew



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Re: Question on Perl (.pl) association

2004-03-18 Thread Matthew O. Persico
On Wed, 17 Mar 2004 14:21:52 +0100, Thorsten Kampe wrote:
 * Martin Gainty (2004-03-17 12:59 +0100)
 I this solution works on windows

 But how do we get .pl association with CYGWIN Perl?

 I already answered this question. Let me explain it more simply: it
 can't be done with Cygwin; it has to be done in Windows. It won't
 benefit you in Cygwin (except for cygstart).

 assoc /?
 ftype /?
 associate /?

And the really sick part is if you type

ftype /?

the help text says, among other things:

 gets the 1st parameter, %3 the second, etc.  %~n gets all the remaining
parameters starting with the nth parameter, where n may be between 2 and 9,
inclusive.  For example:

ASSOC .pl=PerlScript
FTYPE PerlScript=perl.exe %1 %*

would allow you to invoke a Perl script as follows:

script.pl 1 2 3

I find it very funny that MS software is exampling one of the ultimate Open Source 
products!

--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: compiled files under GPL?

2003-09-26 Thread Matthew O. Persico
On Fri, 26 Sep 2003 20:27:36 -0400 (EDT), Igor Pechtchanski wrote:
 On Fri, 26 Sep 2003, Brian Ford wrote:

 Is it true that any application I compile under cygwin's
 gcc/g++ is
 automatically under the GPL? Is so I've been doing some
 violating...
 sorry.

 This will link your binary to the cygwin DLL by default.  Unless
 you have
 purchased a buy out contract from Red Hat, yes.

 There are some exceptions, IIRC.  For more information, see
 http://cygwin.com/faq/faq_8.html#SEC136 or consult a lawyer.
 Igor

I'm treading on very thin ice here with respect to being OT but I beg your indulgence. 
From the link above:

To cover the GNU GPL requirements, the basic rule is if you give out any binaries, 
you must also make the source available. 

Which means if I use GNU GPL software to make a commercial product (selling and 
distribution implied), the product must be GPL, source exposed, etc.

BUT, if I use GPL in a bank to create software used by bank customers or in back 
overnight process, since I'm NOT selling the software, I don't have to expose squat. 
Yes? If so, then the GPL-is-viral argument goes by the wayside for all non-software 
development companies.

Is that a reasonable interpretation?

--
Matthew O. Persico



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Mail Archives are Your Friend...

2003-08-04 Thread Matthew O. Persico
A plug for http://sources.redhat.com/ml/cygwin/ (hopefully read by newbies)

While trying to build a package, I got an error on gcc switch -fnative-sources. I 
pumped that into the search engine at the mail archives and the first entry that 
popped up had the solution in
the summary - didn't even have to open that email. To wit: in gcc 3.2 replace 
-fnative-sources with -mms-bitfields.

If you ask before you search, you deserve the WoCGF (Wrath of CGF)

:-)

--
Matthew




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Erroneous complaint about being unable to run emacs

2003-07-27 Thread Matthew O. Persico
On Sun, 27 Jul 2003 10:35:04 -0500, Bill McCormick wrote:
Martin Cohen Wrote:
The reason for this is that my McAfee firewall was
set (due to my mistake) to not allow emacs to access the
internat. This caused the failure above.

I do not know why emacs (and other applications, such as
xclock) need to access the internet, but allowing them to
allows them to run.

Emacs (and must programs X programs) use TCP/IP sockets to
communicate to
Xserver.


Agreed, but what really bugs me is this:

Emacs has to use TCP/IP to look for an XServer, but the best it can to is look at 
127.0.0.1 and then $DISPLAY. So, assuming that both are on the same machine, why 
is McAffee
detecting an attempt to get to the Internet? Shouldn't they both resolve to the LAN? 
Unless McAffee/Norton and the ilk monitor the TCP/IP stack and put up messages 
before the
destination is decoded, assuming the worst?

--
Matthew O. Persico




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



Re: Erroneous complaint about being unable to run emacs

2003-07-27 Thread Matthew O. Persico
On Sun, 27 Jul 2003 12:57:31 -0400, Larry Hall wrote:
Matthew O. Persico wrote:

On Sun, 27 Jul 2003 10:35:04 -0500, Bill McCormick wrote:

Martin Cohen Wrote:

The reason for this is that my McAfee firewall was
set (due to my mistake) to not allow emacs to access the
internat. This caused the failure above.

I do not know why emacs (and other applications, such as
xclock) need to access the internet, but allowing them to
allows them to run.

Emacs (and must programs X programs) use TCP/IP sockets to
communicate to
Xserver.



Agreed, but what really bugs me is this:

Emacs has to use TCP/IP to look for an XServer, but the best it can
to is look at 127.0.0.1 and then $DISPLAY. So, assuming that
both are on the same machine, why is McAffee
detecting an attempt to get to the Internet? Shouldn't they both
resolve to the LAN? Unless McAffee/Norton and the ilk monitor the
TCP/IP stack and put up messages before the
destination is decoded, assuming the worst?


Is this a rhetorical question?

No, I really don't know exactly what McAffee or Emacs do under the covers. I was just 
supposing based on observed behaviour outside of Cygwin.


If not, you could debug Emacs to look for the answer, although I
expect it
comes down to the internals of Winsock.  But, if you can't find a
good
reason there, then it must be a McAffee issue.  Actually, you might
want
to start there anyway.  A review of their knowledge base might
provide
some insights.  If you do find that this is some wierd Cygwin issue,
report it back to this list.



--
Matthew O. Persico




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: perl with cygwin 1.5 doesn't fly.

2003-07-21 Thread Matthew O. Persico
On Sun, 20 Jul 2003 14:17:23 -0400, George Njoku wrote:
Check u're perl code again

Use strict;   # that way you must use 'my' to define all scalars

My %module = ( 'cygwin'='Cygwin' ); # note 'cygwin' My $var =
$module{$^0} || 'Unix'  # can't remember what special variable = #
$^0 but note that since %module and # $var are in the same scope you
should try not to name %module and $module bcos $module refers to an
entry in the hash of %modules

Um, no.

%module is a hash
$module{somekey} locates a value in the hash %module
$module is a separate scalar.

Try this:

use strict;
use warnings;

my %module = ('cygwin' = 'Cygwin');
my $module = 'Lunar';

print hash el:  . $module{'cygwin'} . \n;
print scalar:  . $module . \n;

I will admit might be confusing to use a scalar $module and a hash %module, but it is 
not an error.


Print $var\n;


[EMAIL PROTECTED]


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Gerrit P. Haase Sent: Saturday, July 19, 2003 6:20 PM To:
[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: perl with
cygwin 1.5 doesn't fly.

Hallo,

I'm getting strange errors when I compile Perl 5.8 with Cygwin 1.5,
well, miniperl.exe compiles, but then the first simple tests break:

1. This as script executed with miniperl.exe: %module = ( cygwin  =
'Cygwin' );
$module = $module{$^O} || 'Unix';
print $module\n;

gives what is expected: $ ./miniperl ./minitest.pl Cygwin


2. If I change the script now to be: my %module = ( cygwin  =
'Cygwin' );
$module = $module{$^O} || 'Unix';
print $module\n;

I get: $ ./miniperl ./minitest.pl Unix


3. And if a second 'my' is added: my %module = ( cygwin  = 'Cygwin'
);
my $module = $module{$^O} || 'Unix';
print $module\n;

I get: $ ./miniperl ./minitest.pl



What is wrong with 'my' on Cygwin 1.5?


Gerrit


--
Matthew O. Persico




--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/



RE: Cygwin + Oracle (Pro*C)

2003-03-15 Thread Matthew O. Persico
On Fri, 14 Mar 2003 23:26:46 -0600, Gary R. Van Sickle wrote:
At 22:34 2003-03-13, [EMAIL PROTECTED] wrote:
On 13 Mar 2003, günter strubinsky [EMAIL PROTECTED] wrote:

I am lost right now…

Maybe you can't see the way because all that html is in the way.


Right. And that silly ASCII business is overkill, too.

I'm starting a new campaign to go back to Fieldata and Baudot. Who
needs all that fancy-pants punctuation? If you can't get your
meaning
across with letters, numbers, comma, period and quotes (and, of
course,
the all-important dollar $ign), you just don't know how to
communicate.
Oh, yeah, and parentheses, of course... Hell, Fieldata has six
unused
codes. What a waste! Better stick to Baudot.

RRS

Pfhht, Fieldata, Baudot!  Kids today and thier MIL-STD's and
their letter
sets and their figure sets, bah!  Why, in my day, we had to press
crude
wooden styli into wet clay tablets to exchange information!  Me.
And when
the clay dried and turned rock-hard before you were finished, you'd
get slivers
from the stylus embedded in your fingers.  And the slivers would get
infected,
and pus would ooze all over your clay tablet, and we'd exchange pus-
stained
clay-tablet information and that’s the way it was AND WE LIKED IT!
We loved it.
We couldn't get enough of it.  Yeah, we liked it just fine.


Ug. What silly. We paint on cave walls. Grunt.

--
Matthew O. Persico



--
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/



Alan Dobkin multi-mail

2002-04-18 Thread Matthew O. Persico

Is it just me or is everyone on the list repeatedly receivng multiple copies of Alan's 
post dated 4/2/2002?
--
Donna  Matthew



--
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/