delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/02/11/17:24:44

Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com
Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <36C311FB.AD753B9@dddandr.octacon.co.uk>
Date: Thu, 11 Feb 1999 17:23:07 +0000
From: Don Sharp <Don DOT Sharp AT dddandr DOT octacon DOT co DOT uk>
Reply-To: dwsharp AT iee DOT org
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: gnu-win32 <cygwin AT sourceware DOT cygnus DOT com>
Subject: short changing by ash

You may be interested in the following differences in behaviour
between bash and (a)sh. ash comes up with one character less.

Cheers

Don Sharp

    bash-2.02$ ash
    $ v=a123/b123.mak
    $ a=${v%%/*}
    $ echo $a
    a12
    $ exit
    bash-2.02$ v=a123/b123.mak
    bash-2.02$ a=${v%%/*}
    bash-2.02$ echo $a
    a123
    bash-2.02$

bash-2.02$ cygcheck -s

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Thu Feb 11 14:38:20 1999

WinNT Ver 4.0 build 1381 Service Pack 3

Path:   /bin
        /usr/bin
        //c/winnt/system32
        //c/winnt
        //i/msdev/bin
        //c/bin
        //c/dos
        //c

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `//D/don'
MAKE_MODE = `UNIX'
PWD = `/tmp'

Use `-r' to scan registry

a:\ fd           N/A    N/A                    
c:\ hd  FAT      509Mb  58% CP    UN           MSDOS622_NT
d:\ hd  FAT      509Mb  33% CP    UN           USERFILES
e:\ hd  FAT      125Mb  96% CP    UN           WINDOWSWAPS
f:\ hd  FAT      509Mb   5% CP    UN           WIN_APPLICS
g:\ hd  FAT      509Mb  13% CP    UN           OPENPRODUCT
h:\ hd  FAT      509Mb  79% CP    UN           OPENWORK
i:\ hd  FAT      509Mb  43% CP    UN           MS_APPLICS
j:\ hd  NTFS     509Mb  13% CP CS UN PA FC     NT_APPLICS
k:\ hd  NTFS     509Mb   5% CP CS UN PA FC     NT_SYSTEMS
l:\ fd  FAT       95Mb  40% CP    UN           MIS_002
m:\ cd           N/A    N/A                    

g:    /        native  text=binary

Found: g:\bin\bash.exe
Found: \bin\bash.exe
Found: g:\usr\bin\cat.exe
Not Found: cpp (good!)
Found: g:\usr\bin\find.exe
Found: c:\dos\find.exe
Found: g:\usr\bin\gcc.exe
Found: g:\usr\bin\gdb.exe
Found: g:\usr\bin\ld.exe
Found: g:\usr\bin\ls.exe
Found: g:\usr\bin\make.exe
Found: g:\bin\sh.exe
Found: \bin\sh.exe

  728k 1998/12/19 g:\bin\cygwin1.dll
  371k 1998/12/01 g:\usr\bin\cygtcl80.dll
    5k 1998/12/01 g:\usr\bin\cygtclpip80.dll
   10k 1998/12/01 g:\usr\bin\cygtclreg80.dll
  600k 1998/12/01 g:\usr\bin\cygtk80.dll
  446k 1998/12/03 g:\usr\bin\cygwinb201.dll
  728k 1998/12/19 \bin\cygwin1.dll
Use -h to see help about each section

--   
Want to unsubscribe from this list?                             
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com


- Raw text -


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