Mail Archives: cygwin/2006/11/09/06:32:36
--------------050706090306080204010602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I am observing that string concatenation in bash 3.2.3(5), as well as in
3.1.17 (not exactly sure, the one that comes with the distribution),
overwrites the first string variable during concatenation:
Example code:
string1="one"
string2="two"
echo $string1
echo "$string1+"
echo "$string1+$string2"
echo "The number 2: $string2"
echo "This is $string1 + $string2"
Example results:
one
+ne
+two
The number 2: two
+ twos one
-------------------------------------------------------------------------------------
Adding an if-fi construction in the bash script leads to an error:
Example:
if $x==5; then
echo "Blah1"
else
echo "Blah2"
fi
Example result:
for line XX which is the last +1 line of the script, the
following message is displayed
script_path: line XX: syntax error: unexpected end of file
Cheers,
Borislav
--------------050706090306080204010602
Content-Type: text/plain;
name="cygcheck.out"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="cygcheck.out"
Cygwin Configuration Diagnostics
Current System Time: Thu Nov 09 12:06:27 2006
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 4
Path: E:\EDK\cygwin\usr\local\bin
E:\EDK\cygwin\bin
E:\EDK\cygwin\bin
e:\EDK\bin\nt
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\Program Files\Common Files\Adaptec Shared\System
c:\Program Files\Common Files\Adobe\AGL
e:\Xilinx\bin\nt
d:\mentorgraphics\2004\common\win32\bin
d:\mentorgraphics\2004\common\win32\lib
c:\Program Files\SSH Communications Security\SSH Secure Shell
Output from E:\EDK\cygwin\bin\id.exe (nontsec)
UID: 400(bt) GID: 401(mkpasswd)
0(root) 544(Administrators) 545(Users) 401(mkpasswd)
Output from E:\EDK\cygwin\bin\id.exe (ntsec)
UID: 400(bt) GID: 401(mkpasswd)
0(root) 544(Administrators) 545(Users) 401(mkpasswd)
SysDir: C:\WINNT\system32
WinDir: C:\WINNT
USER = 'bt'
PWD = '/cygdrive/c/Documents and Settings/bt'
HOME = '/cygdrive/c/Documents and Settings/bt'
MAKE_MODE = 'unix'
HOMEPATH = '\Documents and Settings\bt'
APPDATA = 'C:\Documents and Settings\bt\Application Data'
SDD_PLATFORM = 'win32'
SDD_LOCAL = 'C:\Documents and Settings\bt\Application Data\mgc\2004'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'x86 Family 15 Model 2 Stepping 4, GenuineIntel'
WINDIR = 'C:\WINNT'
SDD_WG = 'wg'
OLDPWD = '/usr/bin'
WDIR = 'C:\Documents and Settings\bt\My Documents\epd_data;d:\mentorgraphics\2004\standard'
USERDOMAIN = 'BTPC'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
OS2LIBPATH = 'C:\WINNT\system32\os2\dll;'
EPD_STARTBAT = 'start /b /wait'
TEMP = '/cygdrive/c/WINNT/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
XILINX_EDK = 'E:\EDK'
EPD_WV = 'wv'
USERNAME = 'bt'
SDD_VERSION = '2004'
PROCESSOR_LEVEL = '15'
EPD_START = 'start'
SYSTEMDRIVE = 'C:'
GMAXLOC = 'H:\gmax\'
USERPROFILE = 'C:\Documents and Settings\bt'
MGLS_LICENSE_SEARCH = '1'
PS1 = '\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
LOGONSERVER = '\\BTPC'
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\Documents and Settings\bt\Desktop'
SHLVL = '1'
EPD_LOCAL = 'C:\Documents and Settings\bt\Application Data\mgc\2004'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
SDD_HOME = 'd:\mentorgraphics\2004'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\WINNT\system32\cmd.exe'
TMP = '/cygdrive/c/WINNT/Temp'
SYSTEMROOT = 'C:\WINNT'
PROCESSOR_REVISION = '0204'
MGLS_LICENSE_FILE = '1717 AT 192 DOT 38 DOT 72 DOT 24,1717 AT 192 DOT 38 DOT 72 DOT 199,1717 AT 192 DOT 38 DOT 72 DOT 207'
EPD_ROOT = 'd:\mentorgraphics\2004'
SDD_COMMON_BIN = 'd:\mentorgraphics\2004\common\win32\bin'
EPD_VLPERL_BIN = 'd:\mentorgraphics\2004\common\win32\perl\bin\mswin32-x86'
!E: = 'E:\EDK\cygwin\bin'
PROGRAMFILES = 'C:\Program Files'
LMC_HOME = 'e:\Xilinx\smartmodel\nt\installed_nt'
NUMBER_OF_PROCESSORS = '1'
EPD_ARCH = 'win32'
XILINX = 'e:\Xilinx'
COMPUTERNAME = 'BTPC'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
(default) = '/cygdrive'
cygdrive flags = 0x00000022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
(default) = '/cygdrive'
cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = 'E:\EDK\cygwin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = 'E:\EDK\cygwin/bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = 'E:\EDK\cygwin/lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a: fd N/A N/A
c: hd NTFS 5992Mb 62% CP CS UN PA FC Windows
d: hd FAT32 1988Mb 33% CP UN COMMON
e: hd NTFS 10001Mb 65% CP CS UN PA FC CAE
f: hd NTFS 10001Mb 86% CP CS UN PA FC PROJECTS
g: hd NTFS 10001Mb 64% CP CS UN PA FC INSTALL
h: hd NTFS 13829Mb 66% CP CS UN PA FC MEDIA
i: cd N/A N/A
. /cygdrive user binmode,cygdrive
E:\EDK\cygwin / system binmode
E:\EDK\cygwin/bin /usr/bin system binmode
E:\EDK\cygwin/lib /usr/lib system binmode
. /cygdrive system binmode,cygdrive
Found: E:\EDK\cygwin\bin\awk.exe
Found: E:\EDK\cygwin\bin\bash.exe
Found: E:\EDK\cygwin\bin\cat.exe
Found: E:\EDK\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: E:\EDK\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: E:\EDK\cygwin\bin\grep.exe
Found: E:\EDK\cygwin\bin\kill.exe
Not Found: ld
Found: E:\EDK\cygwin\bin\ls.exe
Found: E:\EDK\cygwin\bin\make.exe
Found: E:\EDK\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: E:\EDK\cygwin\bin\rm.exe
Found: E:\EDK\cygwin\bin\sed.exe
Not Found: ssh
Found: E:\EDK\cygwin\bin\sh.exe
Found: E:\EDK\cygwin\bin\tar.exe
Found: E:\EDK\cygwin\bin\test.exe
Found: E:\EDK\cygwin\bin\vi.exe
Found: E:\EDK\cygwin\bin\vim.exe
56k 2005/07/09 E:\EDK\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
"cygbz2-1.dll" v0.0 ts=2005/7/9 7:09
7k 2006/10/22 E:\EDK\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
"cygcharset-1.dll" v0.0 ts=2006/10/23 1:43
7k 2003/10/19 E:\EDK\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
"cygcrypt-0.dll" v0.0 ts=2003/10/19 9:57
64k 2006/06/09 E:\EDK\cygwin\bin\cygexslt-0.dll - os=4.0 img=1.0 sys=4.0
"cygexslt-0.dll" v0.0 ts=2006/6/9 22:17
40k 2006/03/24 E:\EDK\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
"cygform-8.dll" v0.0 ts=2006/3/24 8:16
45k 2001/04/25 E:\EDK\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/4/25 7:28
35k 2002/01/09 E:\EDK\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
"cygform6.dll" v0.0 ts=2002/1/9 7:03
48k 2003/08/09 E:\EDK\cygwin\bin\cygform7.dll - os=4.0 img=1.0 sys=4.0
"cygform7.dll" v0.0 ts=2003/8/9 11:25
323k 2005/07/10 E:\EDK\cygwin\bin\cyggcrypt-11.dll - os=4.0 img=1.0 sys=4.0
"cyggcrypt-11.dll" v0.0 ts=2005/7/10 2:10
28k 2003/07/20 E:\EDK\cygwin\bin\cyggdbm-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-3.dll" v0.0 ts=2003/7/20 9:58
30k 2003/08/11 E:\EDK\cygwin\bin\cyggdbm-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm-4.dll" v0.0 ts=2003/8/11 4:12
19k 2003/03/22 E:\EDK\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2002/2/20 4:05
15k 2003/07/20 E:\EDK\cygwin\bin\cyggdbm_compat-3.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-3.dll" v0.0 ts=2003/7/20 10:00
15k 2003/08/11 E:\EDK\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm_compat-4.dll" v0.0 ts=2003/8/11 4:13
12k 2005/07/09 E:\EDK\cygwin\bin\cyggpg-error-0.dll - os=4.0 img=1.0 sys=4.0
"cyggpg-error-0.dll" v0.0 ts=2005/7/10 0:34
17k 2001/06/28 E:\EDK\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/7 5:34
29k 2003/08/10 E:\EDK\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
"cyghistory5.dll" v0.0 ts=2003/8/11 1:16
24k 2006/03/25 E:\EDK\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
"cyghistory6.dll" v0.0 ts=2006/3/25 15:05
976k 2006/10/22 E:\EDK\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
"cygiconv-2.dll" v0.0 ts=2006/10/23 1:44
22k 2001/12/13 E:\EDK\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
"cygintl-1.dll" v0.0 ts=2001/12/13 10:28
37k 2003/08/10 E:\EDK\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
"cygintl-2.dll" v0.0 ts=2003/8/10 23:50
31k 2005/11/20 E:\EDK\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
"cygintl-3.dll" v0.0 ts=2005/11/20 3:04
31k 2006/10/23 E:\EDK\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
"cygintl-8.dll" v0.0 ts=2006/10/23 2:12
21k 2001/06/20 E:\EDK\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
"cygintl.dll" v0.0 ts=2001/6/20 19:09
81k 2006/06/30 E:\EDK\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2001/10/10 3:57
35k 2006/06/30 E:\EDK\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2001/10/10 3:58
21k 2006/03/24 E:\EDK\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
"cygmenu-8.dll" v0.0 ts=2006/3/24 8:16
26k 2001/04/25 E:\EDK\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/25 7:27
20k 2002/01/09 E:\EDK\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
"cygmenu6.dll" v0.0 ts=2002/1/9 7:03
29k 2003/08/09 E:\EDK\cygwin\bin\cygmenu7.dll - os=4.0 img=1.0 sys=4.0
"cygmenu7.dll" v0.0 ts=2003/8/9 11:25
67k 2006/03/24 E:\EDK\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++-8.dll" v0.0 ts=2006/3/24 8:17
156k 2001/04/25 E:\EDK\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/25 7:29
175k 2002/01/09 E:\EDK\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++6.dll" v0.0 ts=2002/1/9 7:03
227k 2006/03/24 E:\EDK\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
"cygncurses-8.dll" v0.0 ts=2006/3/24 5:51
226k 2001/04/25 E:\EDK\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/25 7:17
202k 2002/01/09 E:\EDK\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses6.dll" v0.0 ts=2002/1/9 7:03
224k 2003/08/09 E:\EDK\cygwin\bin\cygncurses7.dll - os=4.0 img=1.0 sys=4.0
"cygncurses7.dll" v0.0 ts=2003/8/9 11:24
12k 2006/03/24 E:\EDK\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
"cygpanel-8.dll" v0.0 ts=2006/3/24 8:16
15k 2001/04/25 E:\EDK\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/25 7:27
12k 2002/01/09 E:\EDK\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
"cygpanel6.dll" v0.0 ts=2002/1/9 7:03
19k 2003/08/09 E:\EDK\cygwin\bin\cygpanel7.dll - os=4.0 img=1.0 sys=4.0
"cygpanel7.dll" v0.0 ts=2003/8/9 11:24
109k 2006/02/10 E:\EDK\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcre-0.dll" v0.0 ts=2006/2/10 3:37
63k 2006/06/30 E:\EDK\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
"cygpcre.dll" v0.0 ts=2003/4/11 10:31
299k 2006/02/10 E:\EDK\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcrecpp-0.dll" v0.0 ts=2006/2/10 3:38
7k 2006/02/10 E:\EDK\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
"cygpcreposix-0.dll" v0.0 ts=2006/2/10 3:37
22k 2002/06/09 E:\EDK\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
"cygpopt-0.dll" v0.0 ts=2002/6/9 7:45
108k 2001/06/28 E:\EDK\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/7 5:34
148k 2003/08/10 E:\EDK\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
"cygreadline5.dll" v0.0 ts=2003/8/11 1:16
152k 2006/03/25 E:\EDK\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
"cygreadline6.dll" v0.0 ts=2006/3/25 15:05
390k 2006/06/30 E:\EDK\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2001/10/10 3:47
5k 2006/06/30 E:\EDK\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2006/06/30 E:\EDK\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2001/10/10 3:47
623k 2006/06/30 E:\EDK\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2001/10/10 3:55
1065k 2006/06/09 E:\EDK\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
"cygxml2-2.dll" v0.0 ts=2006/6/9 21:10
193k 2006/06/09 E:\EDK\cygwin\bin\cygxslt-1.dll - os=4.0 img=1.0 sys=4.0
"cygxslt-1.dll" v0.0 ts=2006/6/9 22:15
65k 2006/10/16 E:\EDK\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2006/10/16 3:10
1831k 2006/07/30 E:\EDK\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2006/7/30 20:21
Cygwin DLL version info:
DLL version: 1.5.21
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 156
Shared data: 4
DLL identifier: cygwin1
Mount registry: 2
Cygnus registry name: Cygnus Solutions
Cygwin registry name: Cygwin
Program options name: Program Options
Cygwin mount registry name: mounts v2
Cygdrive flags: cygdrive flags
Cygdrive prefix: cygdrive prefix
Cygdrive default prefix:
Build date: Sun Jul 30 14:21:47 EDT 2006
Shared id: cygwin1S4
Can't find the cygrunsrv utility, skipping services check.
Cygwin Package Information
Last downloaded files to: D:\cygwin_install
Last downloaded files from: ftp://ftp.inf.tu-dresden.de/software/windows/cygwin32
Package Version
_update-info-dir 00444-1
alternatives 1.3.29a-1
ash 20040127-3
base-files 3.7-1
base-passwd 2.2-1
bash 3.1-9
bzip2 1.0.3-1
coreutils 5.97-1
crypt 1.1-1
cygutils 1.3.0-1
cygwin 1.5.21-2
cygwin-doc 1.4-4
diffutils 2.8.7-1
editrights 1.01-1
findutils 4.3.0-2
gawk 3.1.5-4
gdbm 1.8.3-7
grep 2.5.1a-2
groff 1.18.1-2
gzip 1.3.5-2
less 381-1
libbz2_1 1.0.3-1
libcharset1 1.11-1
libgcrypt 1.2.1-1
libgdbm 1.8.0-5
libgdbm-devel 1.8.3-7
libgdbm3 1.8.3-3
libgdbm4 1.8.3-7
libgpg-error 1.1-1
libiconv 1.11-1
libiconv2 1.11-1
libintl 0.10.38-3
libintl1 0.10.40-1
libintl2 0.12.1-3
libintl3 0.14.5-1
libintl8 0.15-1
libncurses5 5.2-1
libncurses6 5.2-8
libncurses7 5.3-4
libncurses8 5.5-2
libpcre0 6.6-1
libpopt0 1.6.4-4
libreadline4 4.1-2
libreadline5 4.3-5
libreadline6 5.1-5
libxml2 2.6.26-1
libxslt 1.1.17-1
login 1.9-7
man 1.5p-1
mktemp 1.5-3
ncurses 5.5-2
run 1.1.10-1
sed 4.1.5-2
tar 1.16-1
termcap 20050421-1
terminfo 5.5_20060323-1
texinfo 4.8-3
which 1.7-1
zlib 1.2.3-2
Use -h to see help about each section
--------------050706090306080204010602
Content-Type: text/plain; charset=us-ascii
--
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/
--------------050706090306080204010602--
- Raw text -