This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
1.3.3: in clearmake (GNU mode), cannot set PATH variable (export command) tomore than 258 character, Clearcase ID: v0935571
- To: cygwin at cygwin dot com
- Subject: 1.3.3: in clearmake (GNU mode), cannot set PATH variable (export command) tomore than 258 character, Clearcase ID: v0935571
- From: Heiko_Elger at arburg dot com
- Date: Mon, 22 Oct 2001 11:07:22 +0100
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@arburg.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/