Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Subject: newbie: Out of order execution in script
To: cygwin@cygwin.com
X-Mailer: Lotus Notes Release 5.0.1a (Intl) 17 August 1999
Message-ID: <OF55351BB1.F6C3281B-ON8525699E.007D5DBE@gdls.com>
From: schwarza@gdls.com
Date: Tue, 21 Nov 2000 17:57:47 -0500
MIME-Version: 1.0
X-MIMETrack: Serialize by Router on STL01/SRV/LS/GDYN(Release 5.0.5 |September 22, 2000) at
 11/21/2000 05:57:45 PM,
	Itemize by SMTP Server on STLHUB/SRV/LS/GDYN(Release 5.0.5 |September 22, 2000) at
 11/21/2000 05:57:45 PM,
	Serialize by Router on STLHUB/SRV/LS/GDYN(Release 5.0.5 |September 22, 2000) at
 11/21/2000 05:58:21 PM,
	Serialize complete at 11/21/2000 05:58:21 PM
Content-type: text/plain; charset=us-ascii



I'm using the latest 'stable' version of cygwin (1.1.5) on a Win95 platform
It looks like a script was executed after the statement following the
script started - out of order execution. Is this possible?

In a script I execute:

importScript=<path>/import.sh
importMain=<filename>
tmp=/tmp/$$.gnatmake
gnatI=${tmp}/gnatI
outImp=${tmp}/<filename>

${importScript} ${importMain} ${tmp}

sed -e '/(/d'                             \
    -e 's@/kostabi@@'                     \
    -e 's@^@\ -aI/kostabi@'               \
    -e 's@/@\\@g'           ${outImp}.imp > ${gnatI}

The messages below are:

[1] sed: can't read /tmp/398883.gnatmake/device_control_main.imp: No such
file or directory

[2] Main file:  device_control_main

which come in the exact order shown.

The issue is that message [2] is output by the ${importScript} line, and
message [1] indicates that the script has not executed.

In looking at ${tmp} I do see a successful generation of the output file
(${outImp}.imp) indicating that the statement before the 'sed' was run
successfully. I'm guessing that the 'sed' was executed before the script
was started, and failed because the output file was not generated. This
script ran successfully under cywin-b20.1 and I don't see what I'm doing
wrong.

Any idea what I did?

art



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

