🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.misc
Article #17341

Extensions and associations

#17341
From: David J Birnbaum
Date: Fri, 18 Feb 1994 15:28
33 lines
2641 bytes
I set up a decompress program reference object and associated it with
"*.z"; it is supposed to feed data objects that end this way to
"decompress -d". It works as advertised _as long as there is no more
than one period in the filename._ That is, filenames seem to be parsed
from the left, so that abc.z gets decompressed when I double-click on
it, but abc.def.z (a legitimate compressed version of abc.def) doesn't
match. This seems to be a mismatch between the WPS and cmd.exe (and
4os2), since the command processor(s) recognize abc.def.z as matching
*.z, but the WPS program objects doesn't.

Okay, I sez, I'll redefine the template as "*z". This works, except that
it matches too much. In particular, I'd like to match a "gzip -d"
program reference object to anything ending in ".gz" and "compress -d"
to anything ending in ".z". I can wiggle around this by associating gzip
first to "*gz" and then compress to "*z"; the first association becomes
the default, so everything will work (gzipped files get associated with
both ungzip and uncompress, but the former is the default, while
compressed files are associated only with uncompress). But this isn't
the way nature (or, I hope, IBM, intended); I would expect the WPS to
expand wildcards the same way as the command processor, so that I
should be able to specify "*.z" and match both "abc.z" and
"abc.def.z".

Is this a design flaw? User error? Something else?

Thanks,

David
--
Professor David J. Birnbaum         djbpitt+@pitt.edu 
The Royal York Apartments, #802
3955 Bigelow Boulevard              voice: 1-412-687-4653
Pittsburgh, PA  15213  USA          fax:   1-412-624-9714
Technical Details
Message-ID: <15190@blue.cis.pitt.edu>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!pipex!uunet!nntp.club.cc.cmu.edu!godot.cc.duq.edu!pitt.edu!djbpitt

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1044c2,2d60ab4a66099b88,start
X-Google-Attributes: gid1044c2,public
X-Google-Thread: 10cd94,2d60ab4a66099b88,start
X-Google-Attributes: gid10cd94,public
X-Google-Thread: 104158,2792f3de86dd2358
X-Google-Attributes: gid104158,public
X-Google-Thread: 10a2ec,a13a6fa8f24cfeb6
X-Google-Attributes: gid10a2ec,public
X-Google-Thread: fd321,2d60ab4a66099b88,start
X-Google-Attributes: gidfd321,public
X-Google-ArrivalTime: 1994-02-18 07:28:05 PST
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!pipex!uunet!nntp.club.cc.cmu.edu!godot.cc.duq.edu!pitt.edu!djbpitt
From: djbpitt@pitt.edu (David J Birnbaum)
Newsgroups: comp.os.os2.misc,bit.listserv.os2-l
Subject: Extensions and associations
Message-ID: <15190@blue.cis.pitt.edu>
Date: 18 Feb 94 15:28:05 GMT
Sender: news+@pitt.edu
Followup-To: comp.os.os2.misc
Lines: 33
X-Newsreader: TIN [version 1.2 PL2]