| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Lost desktop |
Milan Mastnak wrote:
> On Mon, 22 Aug 2005 22:00:17 +0200, Herbert Rosenau wrote:
>
>
>>Milan Mastnak wrote:
>>
>>>ZIP -r -S -1 C:\Zascita.Z00 C:\OS2\OS2*.INI C:\DESKTOP\*.*
1>NUL 2>C:\STARTUP.ERR
>>>
>>
>>Looks fine so fr but there is a bug. ZIP.exe is unix devirat and like
>>anything in unix it does NOT interpret a dot '.' like DOS. *.* means
>>"anything that owns a filename containing at least one
dot" But a file
>>like abc is NOT containing a DOT in its name, zippling it woult fail
>>without any notice because it does NOT match the filemask.
>>
>>Hint: use simply '*' (even in cmd.exe or other os2 related apps) when
>>you means anything. Use only '*.*' when you means really match a name
>>containing at lest one '.' somewhere in it. '.' is not even in HPFS a
>>special character as in FAT wheras that gets ommitted from the name
>>stored into the physical directory structure.
>
>
> I've tested it with "*.*" and "*" and I've got the
ZIP files of the same size. I've creted file without dot and it get zipped
> either way. I'm using:
>
> Copyright (C) 1990-1999 Info-ZIP
> Zip 2.3 (November 29th 1999).
>
Ok.k., zip may have changed its behavior since 1988 - but at least
some unix ports owns that behavior even today. I'm using OS/2 since
1988 and been fallen in that trap in that early days too often with
some programs, so I have trainend myself to use filemasks exactly as
sayed:
- '*' means all and anything (except file attributes hinders)
this is the most common form to specify that.
- '*.*' only files containing at least one '.' in its name.
you finds different behavior on files with names like
'letter 24.07.2005'
This is DOS only style and really outdated. Even newer
command.com (DOS 5.0 and newer) handles '*' right.
FAT is the only file system that stores NO '.' on disk.
HPFS, HPFS386, JFS uses the char '.' like any other character.
So even zip will give you different file list on the same files when
they are stored either on FAT or other filesystems when you use a mask
like '*.*' or '*'.
On other hand it is more easy to type simply '*' instead '*.*' to get
anything. The old DOS *.* is outdated since more than 10 years now.
Use google to find comments about "regexp". A mask like '*' is the
most simple form of that. Most halfways moder programs are able to
interpret really more complex regexp masks as that (including
zip/unzip or OS/2 cmd.exe......)
--
Tschau/Bye
Herbert Rosenau eCS 1.2 Deutsch bestellen bei
EDV Beratung & Programmierung http://pc-rosenau.de
Eichelsdorfer Str. 15 http://ecomstation.de
97461 Hofheim i.UFr. kostenlos surfen/telefonieren:
http://pc-rosenau.profiseller.de
Tel: 49-9523-502834
Fax: 49-9523-502823 http://www.dv-rosenau.de/
------------------------ Yahoo! Groups Sponsor --------------------~-->
http://us.ard.yahoo.com/SIG=12hfse0fs/M=362329.6886308.7839368.1510227/D=groups/S=1705115396:TM/Y=YAHOO/EXP=1124893304/A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?page_id=1992
">Fair play? Video games influencing politics. Click and talk
back!.
--------------------------------------------------------------------~->
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/os2user/
To unsubscribe from this group, send an email to:
os2user-unsubscribe{at}yahoogroups.com
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
---
* Origin: Waldo's Place USA Internet Gateway (1:3634/1000)SEEN-BY: 633/267 270 5030/786 @PATH: 3634/1000 12 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.