This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index] [Subject Index] [Author Index] [Thread Index]

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@sourceware.cygnus.com