* Re[2]: env command does not work correctly.
@ 1997-04-10 1:32 DG Ellis
0 siblings, 0 replies; 2+ messages in thread
From: DG Ellis @ 1997-04-10 1:32 UTC (permalink / raw)
To: egcs; +Cc: gnu-win32
Text item:
Simple minor note that the $foo in the command below is interpreted by the
original command line interpreter before the actual statement is executed.
This is why this example will not work. The example given in the post by
Fabio is correct in its use.
You could try:
foo=hi eval echo '$foo'
This would cause $foo to be protected first time arround, then let
eval evaluate the command after the assignment and do the echo.
FWIW Dave Ellis
______________________________ Reply Separator _________________________________
Subject: Re: env command does not work correctly.
Author: gnu-win32-owner@cygnus.com at SMTPGATE
Date: 4/4/97 3:30 PM
env is a command typically used in csh-like shells. With bash, you can
just say:
ONE=one TWO=two echo_1_2
This also does not work with cygwin32 17.1.
The simple statement: foo=hello echo $foo
doesn't work.
Also I am not real familiar with unix so I don't know if this is a bug
or not: Only uppercase environment variables can be exported.
+------------------------------+------------------------------------+
| Scott A. Mintz | voice: (216) 646-4805 |
| Allen-Bradley Company | fax: (216) 646-4961 |
| 1 Allen-Bradley Drive | email: scott.mintz@po.cle.ab.com |
| Mayfield Hts., OH 44124-6118 | CIS: 71461,632 |
+------------------------------+------------------------------------+
______________________________ Reply Separator ________________________________
_
Subject: env command does not work correctly.
Author: Fabio@Colorado.EDU at Internet
Date: 4/3/97 2:02 PM
>>>>> "JDR" == John D Robertson <john@rrci.com> writes:
JDR> Platform: Win95 / Intel Release: B17.1
JDR> The "env" command does not set environmental variables as it is
JDR> supposed to. For example:
JDR> env ONE=one TWO=two echo_1_2
JDR> where echo_1_2 is a sh script:
env is a command typically used in csh-like shells. With bash, you
can just say:
ONE=one TWO=two echo_1_2
Under Linux, env works fine with both tcsh and bash. I haven't tried
env with cygwin---I wasn't even aware of its inclusion---and right now
I have no access to my Win95 laptop. But it looks like a bug.
Fabio
--
Fabio Somenzi | Phone: 303-492-3466
University of Colorado | Fax: 303-492-2758
ECE Dept. | Email: Fabio@Colorado.EDU
Boulder CO 80309-0425 | WWW: http://vlsi.colorado.edu/~fabio
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
Text item: External Message Header
The following mail header is for administrative use
and may be ignored unless there are problems.
***IF THERE ARE PROBLEMS SAVE THESE HEADERS***.
Precedence: bulk
Sender: owner-gnu-win32@cygnus.com
Content-Description: cc:Mail note part
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII
Cc: gnu-win32@cygnus.com
To: "John D. Robertson" <john@rrci.com>, Fabio@Colorado.EDU
Subject: Re: env command does not work correctly.
From: Scott.Mintz@po.cle.ab.com (Scott Mintz)
Message-ID: < 00037E4E.1893@po.cle.ab.com >
Date: Fri, 4 Apr 1997 15:30:58 -0500
Mime-Version: 1.0
Received: from ccMail by po.cle.ab.com
(IMA Internet Exchange 2.1 (Gold Candidate) Enterprise) id 00037E4E; Fri, 4 Ap
r 97 15:35:40 -0500
Received: from po.cle.ab.com (po.cle.ab.com [130.151.192.20]) by po.ab.com (8.7.
1/RA1.1) with SMTP id PAA18225; Fri, 4 Apr 1997 15:38:42 -0500 (EST)
Received: from po.ab.com(130.151.128.20) by extfw.cle.ra.rockwell.com via smap (
3.2)
id xma010199; Fri, 4 Apr 97 15:44:17 -0500
Received: by extfw.cle.ra.rockwell.com; id PAA10250; Fri, 4 Apr 1997 15:44:34 -0
500
Received: from extfw.cle.ra.rockwell.com (firewall-user@extfw.cle.ra.rockwell.co
m [192.159.76.10])
by cygnus.com (8.8.5/8.8.5) with SMTP id MAA25963
for <gnu-win32@cygnus.com>; Fri, 4 Apr 1997 12:44:41 -0800 (PST)
Received: (from daemon@localhost)
by cygnus.com (8.8.5/8.8.5) id MAA25968
for gnu-win32-outgoing; Fri, 4 Apr 1997 12:44:48 -0800 (PST)
Received: from cygnus.com (cygnus.com [205.180.230.20]) by mailbag.jf.intel.com
(8.8.5/8.7.3) with ESMTP id DAA24047; Sat, 5 Apr 1997 03:15:33 -0800 (PST)
Received: from mailbag.jf.intel.com (mailbag.jf.intel.com [134.134.248.4]) by re
lay.jf.intel.com (8.7.6/8.7.3) with ESMTP id DAA25843; Sat, 5 Apr 1997 03:13:19
-0800 (PST)
Return-Path: gnu-win32-owner@cygnus.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
* Linking with .LIB files
@ 1997-03-25 12:55 David W Palmer
[not found] ` <08>
0 siblings, 1 reply; 2+ messages in thread
From: David W Palmer @ 1997-03-25 12:55 UTC (permalink / raw)
To: gnu-win32
Yes, I know this has been covered before. Unfortunately, I can't find
the necessary information to get this to work other than to use
link.exe and it might work.
So, I have a simple program which uses OpenGL and I link with the
following:
link simple.o libuser32.a glu32.lib opengl32.lib libgdi32.a
/subsystem:windows /machine:i386
And of course, I get the following:
Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.
LINK : error LNK2001: unresolved external symbol _WinMainCRTStartup
simple.exe : fatal error LNK1120: 1 unresolved externals
make: *** [simple.exe] Error 25
No .EXE is generated. And the answer is... what?
Dave
-
For help on using this list, send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-04-10 1:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-04-10 1:32 Re[2]: env command does not work correctly DG Ellis
-- strict thread matches above, loose matches on Subject: below --
1997-03-25 12:55 Linking with .LIB files David W Palmer
[not found] ` <08>
[not found] ` <Apr>
[not found] ` <97>
[not found] ` <13:07:28>
1997-04-08 18:15 ` Re[2]: env command does not work correctly DG Ellis
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).