Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Reply-To: From: "Sergio Del Rio" To: Subject: 1.1.8: the read command in bash does not behaive the same as in ksh Date: Mon, 23 Apr 2001 23:26:29 -0700 Message-ID: <006e01c0cc87$807e5c70$01de6f0a@CSDR.CA> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_006F_01C0CC4C.D41F8470" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 ------=_NextPart_000_006F_01C0CC4C.D41F8470 Content-Type: multipart/alternative; boundary="----=_NextPart_001_0070_01C0CC4C.D4210B10" ------=_NextPart_001_0070_01C0CC4C.D4210B10 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit This was encountered with cygwin v1.1.8 under Windows 2000 Professional. The following script executes fine on other unix systems but not with cygwin and I was wondering how to get around this problem: echo one two three | read v1 v2 v3 echo "v1 = ${v1}" echo "v2 = ${v2}" echo "v3 = ${v3}" It seems that the variables are not set at all when this is done with cygwin. I have this kind of code in many places and would really appreciate an answer. Thanks! Regards, Sergio Del Rio Templates 4 Business Inc. Cell: (604) 788-3604 Fax: (604) 582-7877 ------=_NextPart_001_0070_01C0CC4C.D4210B10 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

This was encountered with cygwin v1.1.8 under Windows 2000 = Professional.

 

The following script executes fine on other unix systems but not = with cygwin and I was wondering how to get around this = problem:

 

echo one two three | read v1 v2 = v3

echo "v1 =3D ${v1}"

echo "v2 =3D ${v2}"

echo "v3 =3D ${v3}"

 

It seems that the variables are not set at all when this is done = with cygwin.

 

I have this kind of code in many places and would really = appreciate an answer.

 

Thanks!

 

Regards,

Sergio Del = Rio

Templates 4 = Business Inc.

Cell: (604) = 788-3604

Fax: (604) = 582-7877<= /p>

 <= /p>

------=_NextPart_001_0070_01C0CC4C.D4210B10-- ------=_NextPart_000_006F_01C0CC4C.D41F8470 Content-Type: application/octet-stream; name="cygcheck.out" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.out" Cygnus Win95/NT Configuration Diagnostics Current System Time: Mon Apr 23 23:26:01 2001 WinNT Ver 5.0 build 2195 Service Pack 1 Path: /usr/local/bin /usr/bin /bin /cygdrive/e/Oracle/Ora8i/Apache/Perl/5.00503/bin/mswin32-x86 /cygdrive/c/Program Files/Oracle/jre/1.1.7/bin /cygdrive/c/WINNT/system32 /cygdrive/c/WINNT /cygdrive/c/WINNT/System32/Wbem /cygdrive/c/PROGRAM FILES/THINKPAD/UTILITIES /cygdrive/e/Oracle/Ora8i/bin /cygdrive/e/Oracle/Des6i/bin "E /Exceed/Accessories/" /cygdrive/d/Applic/csdr/Bat /cygdrive/d/Applic/ocs/Bat /cygdrive/d/Applic/sdelrio/Bat /cygdrive/e/SecureCRT 3.0 /cygdrive/c/Program Files/SecureCRT 3.0 /cygdrive/e/Microsoft/Visual Studio/Common/Tools/WinNT /cygdrive/e/Microsoft/Visual Studio/Common/MSDev98/Bin /cygdrive/e/Microsoft/Visual Studio/Common/Tools /cygdrive/e/Microsoft/Visual Studio/VC98/bin /cygdrive/f/WINDOWS /cygdrive/f/WINDOWS/COMMAND //d/applic/unix/csdr/sh //d/applic/unix/sdelrio/sh //d/applic/unix/sdelrio/bin //d/applic/unix/csdr/bin //d/applic/unix/sdelrio/dba/sh //d/applic/unix/sdelrio/dba/bin //d/applic/unix/ocs/sh //d/applic/unix/ocs/bin //d/applic/unix/t4bi/sh //d/applic/unix/t4bi/bin //d/applic/unix/t4bs/sh //d/applic/unix/t4bs/bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT PWD =3D `//d/applic/unix' LD_LIBRARY_PATH =3D = `/usr/lib://e/oracle/Ora8i/lib://e/oracle/Ora8i/network/lib' USER =3D `sdelrio' MAKE_MODE =3D `unix' HOME =3D `/home/sdelrio' NUMBER_OF_PROCESSORS =3D `1' PROMPT =3D `$p$g' LOGONSERVER =3D `\\SDELRIO' OS2LIBPATH =3D `C:\WINNT\system32\os2\dll;' ORACLE_SID =3D `CSDRPRD' LOCAL =3D `CSDRPRD' COMSPEC =3D `C:\WINNT\system32\cmd.exe' LISTENER_LIST =3D `LISTENER' LOG_DIR =3D `D:\Applic\sdelrio\Log' !C: =3D `C:\' T4BI_HOME =3D `//d/applic/unix/t4bi' LOCAL_BIN =3D `//d/applic/unix/sdelrio/sh' USER_LOGS =3D `//e/oracle/admin/CSDRPRD/udump' SYSTEMDRIVE =3D `C:' HOSTNAME =3D `SDELRIO' LOG_FILE_HISTORY =3D `7' BACKUP_DMP_HISTORY =3D `2' INCLUDE =3D `E:\Microsoft\Visual = Studio\VC98\atl\include;E:\Microsoft\Visual = Studio\VC98\mfc\include;E:\Microsoft\Visual Studio\VC98\include' PROCESSOR_REVISION =3D `0803' MSDEVDIR =3D `E:\Microsoft\Visual Studio\Common\MSDev98' GREP =3D `/usr/bin/grep' PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' COMPUTERNAME =3D `SDELRIO' BACKUP_LOG_HISTORY =3D `7' BACKUP_HOST_LIST =3D `' ARCHIVE_COPY_PURGE =3D `0' !E: =3D `E:\cygwin\bin' WV_GATEWAY_CFG =3D `E:\Oracle\Ora8i\Apache\modplsql\cfg\wdbsvr.app' DO_HOT_BACKUP =3D `NO' CLASSPATH =3D `E:\Exceed\hcljrcsv.jar;;' WINDIR =3D `C:\WINNT' USERPROFILE =3D `C:\Documents and Settings\sdelrio' COMPLEX_LOGS =3D `//d/applic/unix/sdelrio/log' T4BS_HOME =3D `//d/applic/unix/t4bs' MANPATH =3D `/usr/local/man' ORACLE_ADMIN =3D `//e/oracle/admin' WINBOOTDIR =3D `F:\WINDOWS' PS1 =3D `SDELRIO:$PWD> ' GMS_LOG_DIR =3D `//e/oracle/Ora8i/ops/log' PROGRAMFILES =3D `C:\Program Files' ARCHIVE_PATH =3D `//e/oracle/admin/CSDRPRD/arch' CSDR_ORA_OLD_CALLS =3D `YES' BACKUP_SID_LIST =3D `' !:: =3D `::\' OCS_LOGS =3D `//d/applic/unix/ocs/log' BACKUP_DEVICE =3D `rmt0' MACHTYPE =3D `i686-pc-cygwin' USER_HOME =3D `//d' PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 8 Stepping 3, GenuineIntel' SQLPATH =3D = `D:\Applic\csdr\sql;D:\Applic\csdr\DBA\sql;D:\Applic\csdr\DBA\mon;D:\Appl= ic\ocs\sql;D:\Applic\t4bi\sql;D:\Applic\sdelrio\sql;D:\Applic\t4bs\sql:.:= /home/sdelrio/sql://d/applic/unix/csdr/sql://d/applic/unix/csdr/dba/sql:/= /d/applic/unix/csdr/dba/mon://d/applic/unix/sdelrio/dba/sql://d/applic/un= ix/ocs/sql://d/applic/unix/sdelrio/sql://d/applic/unix/t4bi/sql://d/appli= c/unix/t4bs/sql' USER_OUT =3D `//e/oracle/admin/CSDRPRD/out' CSDR_OVERRIDE_DONE =3D `YES' OS =3D `Windows_NT' BACKUP_ARCHIVE_LOG_PURGE =3D `7' OLDPWD =3D `/' SED =3D `/usr/bin/sed' GMS_HC_SOCKET =3D `/tmp/serv.hc' BACKUP_ARCHIVE_LOGS =3D `NO' PROCESSOR_ARCHITECTURE =3D `x86' TEMP =3D `/cygdrive/c/DOCUME~1/sdelrio/LOCALS~1/Temp' AWK =3D `/usr/bin/awk' EDITOR =3D `vi' PROCESSOR_LEVEL =3D `6' SYSTEMROOT =3D `C:\WINNT' ORACLE_BASE =3D `//e/oracle' LIBPATH =3D `/usr/lib://e/oracle/Ora8i/lib' HOST =3D `SDELRIO' DO_TAPE_BACKUP =3D `YES' COMPLEX_BASE =3D `sdelrio' ORACLE_HOME =3D `E:\Oracle\Ora8i' DO_EXPORT =3D `YES' BACKUP_COMMAND =3D `' COMPLEX_HOME =3D `//d/applic/unix/sdelrio' CSDR_HOME =3D `//d/applic/unix/csdr' HOMEDRIVE =3D `C:' LIB =3D `E:\Microsoft\Visual Studio\VC98\mfc\lib;E:\Microsoft\Visual = Studio\VC98\lib' MASKS =3D `//d/applic/unix/csdr/dba/masks' ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users' APPLIC_HOME =3D `//d/applic/unix' SHLVL =3D `1' DBA =3D `//d/applic/unix/sdelrio/dba' T4BI_LOGS =3D `//d/applic/unix/t4bi/log' APPDATA =3D `C:\Documents and Settings\sdelrio\Application Data' COMMONPROGRAMFILES =3D `C:\Program Files\Common Files' HOMEPATH =3D `\' USERDOMAIN =3D `SDELRIO' GMS_NODE_LIST =3D `//e/oracle/admin/ops/gms.conf' OCS_HOME =3D `//d/applic/unix/ocs' CSDRDBA =3D `//d/applic/unix/csdr/dba' ORAENV_ASK =3D `NO' UNIX_VERSION =3D `CYGWIN' DB_LOGS =3D `//e/oracle/admin/CSDRPRD/bdump' USERNAME =3D `sdelrio' SHELL =3D `/bin/sh' HOSTTYPE =3D `i686' OLD_ORACLE_HOME =3D `//e/oracle/Ora8i' T4BS_USER =3D `t4bi_sys' OSTYPE =3D `cygwin' CSDRSH =3D `//d/applic/unix/csdr/sh' TERM =3D `cygwin' SOFTWARE_MOUNT =3D `//e' CSDRBIN =3D `//d/applic/unix/csdr/bin' T4BS_LOGS =3D `//d/applic/unix/t4bs/log' _ =3D `/usr/bin/cygcheck' TZ =3D `PST8PDT7,M4.1.0/2,M10.5.0/2' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 (default) =3D `/cygdrive' cygdrive flags =3D 0x00000022 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Menu= Order\Start Menu\Programs\Cygnus Solutions (default) =3D (unsupported type) HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) =3D `E:/cygwin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D `E:/cygwin/bin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D `E:/cygwin/lib' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options c: hd FAT32 4759Mb 65% CP UN WIN2000 d: hd FAT32 4759Mb 83% CP UN DATA e: hd FAT32 4759Mb 92% CP UN PROGRAMS f: hd FAT32 4759Mb 51% CP UN WINME g: cd N/A N/A =20 u: net NTFS 9538Mb 34% CP CS UN PA FC Programs2 y: net NTFS 9538Mb 51% CP CS UN PA FC Data z: net NTFS 9538Mb 34% CP CS UN PA FC Programs2 E:\cygwin\bin /usr/bin system binmode E:\cygwin\lib /usr/lib system binmode E:\cygwin / system binmode Found: E:\cygwin\bin\bash.exe Found: E:\cygwin\bin\cat.exe Found: E:\cygwin\bin\cpp.exe Found: E:\cygwin\bin\find.exe Found: f:\WINDOWS\COMMAND\find.exe Warning: E:\cygwin\bin\find.exe hides f:\WINDOWS\COMMAND\find.exe Found: E:\cygwin\bin\gcc.exe Found: E:\cygwin\bin\gdb.exe Found: E:\cygwin\bin\ld.exe Found: E:\cygwin\bin\ls.exe Found: E:\cygwin\bin\make.exe Found: E:\cygwin\bin\sh.exe 56k 2000/12/03 E:\cygwin\bin\cygbz21.0.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygbz21.0.dll" v0.0 ts=3D2000/11/20 15:53 18k 2000/10/23 E:\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyggdbm.dll" v0.0 ts=3D2000/10/22 19:26 14k 2000/10/23 E:\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl.dll" v0.0 ts=3D2000/10/23 12:02 45k 2000/10/22 E:\cygwin\bin\cygjbig1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjbig1.dll" v0.0 ts=3D2000/10/22 16:06 119k 2000/10/23 E:\cygwin\bin\cygjpeg6b.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygjpeg6b.dll" v0.0 ts=3D2000/10/22 17:58 163k 2001/02/03 E:\cygwin\bin\cygpng2.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpng2.dll" v0.0 ts=3D2001/2/3 13:21 82k 2001/01/21 E:\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform5.dll" v0.0 ts=3D2001/1/21 12:39 53k 2001/01/21 E:\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu5.dll" v0.0 ts=3D2001/1/21 12:39 414k 2001/01/21 E:\cygwin\bin\cygncurses++5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses++5.dll" v0.0 ts=3D2001/1/21 12:40 299k 2001/01/21 E:\cygwin\bin\cygncurses5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygncurses5.dll" v0.0 ts=3D2001/1/21 12:38 34k 2001/01/21 E:\cygwin\bin\cygpanel5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpanel5.dll" v0.0 ts=3D2001/1/21 12:38 17k 2001/01/07 E:\cygwin\bin\cyghistory4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyghistory4.dll" v0.0 ts=3D2001/1/6 20:34 108k 2001/01/07 E:\cygwin\bin\cygreadline4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygreadline4.dll" v0.0 ts=3D2001/1/6 20:34 81k 2000/12/05 E:\cygwin\bin\cygitcl30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitcl30.dll" v0.0 ts=3D2000/11/25 17:43 35k 2000/12/05 E:\cygwin\bin\cygitk30.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygitk30.dll" v0.0 ts=3D2000/11/25 17:43 390k 2000/12/05 E:\cygwin\bin\cygtcl80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtcl80.dll" v0.0 ts=3D2000/11/25 17:39 5k 2000/12/05 E:\cygwin\bin\cygtclpip80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 10k 2000/12/05 E:\cygwin\bin\cygtclreg80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtclreg80.dll" v0.0 ts=3D2000/11/25 17:39 623k 2000/12/05 E:\cygwin\bin\cygtk80.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtk80.dll" v0.0 ts=3D2000/11/25 17:43 243k 2000/10/23 E:\cygwin\bin\cygtiff3.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygtiff3.dll" v0.0 ts=3D2000/10/22 18:14 41k 2000/11/20 E:\cygwin\bin\cygXpm-noX4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-noX4.dll" v0.0 ts=3D2000/11/19 18:41 45k 2000/11/20 E:\cygwin\bin\cygXpm-X4.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygXpm-X4.dll" v0.0 ts=3D2000/11/19 18:45 49k 2001/02/03 E:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0 "cygz.dll" v0.0 ts=3D2001/2/3 12:35 615k 2001/01/31 E:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2001/1/31 7:08 Cygwin DLL version info: dll major: 1001 dll minor: 8 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 dll malloc env: 28 api major: 0 api minor: 34 shared data: 3 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:=20 build date: Wed Jan 31 10:08:38 EST 2001 shared id: cygwin1S3 Use -h to see help about each section ------=_NextPart_000_006F_01C0CC4C.D41F8470 Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple ------=_NextPart_000_006F_01C0CC4C.D41F8470--