delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/19/06:49:28

From: jeff AT nuance DOT com (Jeff Bergan)
Subject: Another b18 bash script problem
19 Sep 1998 06:49:28 -0700 :
Message-ID: <000601bde35c$26be1610$68c718d1.cygnus.gnu-win32@pacific.nuance.com>
References: <Pine DOT SUN DOT 3 DOT 95 DOT 980910124719 DOT 10501C-100000 AT weeble DOT lut DOT ac DOT uk>
Mime-Version: 1.0
To: "Gnu-Win32 Mailing List (E-mail)" <gnu-win32 AT cygnus DOT com>

Hi,

Ok, so I wrote a test script in bash to get around the substitution problem
I mentioned before.  It is:
----------------------------------------------------------
var1=somename
var2=num
echo "myvar1=${var1} myvar2=${var2} "
var3=`echo blobname | perl -pe 's/ /,/g'`
echo
echo "var1 is ${var1}"
echo "var2 is ${var2}"
echo "myvar1=${var3}" " myvar2=${var2} "

exit

And its output is:
myvar1=somename myvar2=num

var1 is somename
var2 is num
  myvar2=num me
----------------------------------------------------------

Anybody know why it does this?  Is this another thing that might be fixed in
b18?
I'm running out of ideas to get around it... Any hints?  Thanks!

Jeff

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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