delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/05/04:51:20

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authenticated: #141449
Message-ID: <3F7FDAE1.374175A@gmx.de>
Date: Sun, 05 Oct 2003 10:48:33 +0200
From: Axel Grobe <Axel DOT Grobe AT gmx DOT de>
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Command substitution

I wrote a bash shellscript. It is running fine
in the cygwin bash shell an a Windows NT system.

Now I have installed cygwin on my Computer at home running Win98se,
but I don't get an output from the executed command in a command
substition:

# Here is the script:

BASE=D:/WebSites/abc-def.de/web
IDENTIFY=C:/Programme/ImageMagick-5.5.7-Q16/identify.exe

PicPath=$BASE/bilder/greta
Picture=greta_08.jpg

$IDENTIFY -format "%w" $PicPath/$Picture

PicWidth=`$IDENTIFY -format "%w" $PicPath/$Picture; `

echo "Picture With: $PicWidth !"
echo "That's it."

The first call to $IDENTIFY prints the requested value,
the second executed as command substituion does not return
any value:
283

Picture with: !
That's it.


What's wrong with the script ?

Second: less doesn't start.
One DLL is missing: CYGPCRE-0.dll
Why wasn't it installed from install.exe ?

Axel

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

- Raw text -


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