delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/22/05:08:32

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Subject: 1.3.3: in clearmake (GNU mode), cannot set PATH variable (export command) to
more than 258 character, Clearcase ID: v0935571
To: cygwin AT cygwin DOT com
X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000
Message-ID: <OF08ED2078.B3D2E992-ON41256AED.00378F80@lossburg.arburg.com>
From: Heiko_Elger AT arburg DOT com
Date: Mon, 22 Oct 2001 11:07:22 +0100
X-MIMETrack: Serialize by Router on HUB02/DE/SRV/ARBURG(Release 5.0.7 |March 21, 2001) at
22.10.2001 11:07:22
MIME-Version: 1.0

Hello,

I'm using clearcase V4.2.
I try to run clearmake (GNU mode) with cygwin sh.exe as it's SHELL like the
following:

clearmake -C gnu SHELL=d:\programme\cygwin\bin\sh.exe


I want to set the PATH inside the makefile - so I use the export command, like

export PATH=......

The problem is, the PATH is reset to NULL string if the lenght is more than 258
characters.
With other Varoables all works fine.

If I try the MKS V6.2 sh.exe all works fine.
If I do not use a sh.exe, so clearmake will use cmd.exe, all works fine too.
If I use make.exe all works fine too.

Perhaps someone else has a solution for my problem.

Here is a short example makefile and some output calling make and clearmake
Sorry cause of very long lines .....

--------------------------------------- start of makefile
------------------------------------------------

#
#
# Path Problem mit clearmake
#

#
# sorry, but newlines are inserted by my Mail client
#
#            0
1
2
3
#            0         1         2         3         4         5         6
7         8         9         0         1         2         3         4
5         6         7         8         9         0         1         2
3         4         5         6         7         8         9         0
1         2         3         4         5         6         7         8
9         0
export
HUGO:=01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
ifndef SHELL
export Path:=$(HUGO)
else
export PATH:=$(HUGO)
endif

.phony: all
all:
ifndef SHELL
# NT cmd.exe
     @echo NT SHELL:$(SHELL)
     @echo Make Variable  Hugo:$(HUGO)
     @echo Shell Variable Hugo:%HUGO%
     @echo Make Variable  PATH:$(Path)
     @echo Shell Variable PATH:%PATH%
else
# CYGWIN Shell
     @echo "CYGWIN SHELL:$(SHELL)"
     @echo "Make Variable  Hugo:$(HUGO)"
     @echo "Shell Variable Hugo:$$HUGO"
     @echo "Make Variable  PATH:$(PATH)"
     @echo "Shell Variable PATH:$$PATH"
endif

------------------------------------------- end of makefile
--------------------------------------------------




command: clearmake -C gnu -f path_problem.mk SHELL=d:
\programme\cygwin\bin\sh.exe
---------------- start output ---------------
CYGWIN SHELL:d:\programme\cygwin\bin\sh.exe
Make Variable
Hugo:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Shell Variable
Hugo:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Make Variable
PATH:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Shell Variable PATH:                                      <------ ERROR
!!!!!!!!!!
---------------- end output ---------------


command: clearmake -C gnu -f path_problem.mk                              -->
FUNKTIONIERT
---------------- start output ---------------
NT SHELL:
Make Variable
Hugo:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Shell Variable
Hugo:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Make Variable
PATH:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Shell Variable
PATH:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

<------ OK !!!!!!!!!!
---------------- end output ---------------

command: make -f path_problem.mk SHELL=d:\\programme\\cygwin\\bin\\sh.exe -->
FUNKTIONIERT
---------------- start output ---------------
CYGWIN SHELL:d:\programme\cygwin\bin\sh.exe
Make Variable
Hugo:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Shell Variable
Hugo:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Make Variable
PATH:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Shell Variable
PATH:01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789

 <------ OK !!!!!!!!!!
---------------- ende output ---------------



best regards

   Heiko Elger



********************

ARBURG GmbH + Co
Heiko Elger
- Softwareentwicklung - / - Research and Development -
Arthur-Hehl-Strasse
D-72290 Lossburg
Tel.: +49 (0) 7446 33-3659
Fax.: +49 (0) 7446 33-3365
mailto:heiko_elger AT arburg DOT com
http://www.arburg.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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019