When the self-extracting archive PMSFX2 has become is unpacking itself,
any file called "!" will be displayed on the screen, followed by the question
"Extract Y/N?"; if the user presses N, nothing else will be unpacked.
PMSFX is a wonderful piece of software.
------------- http://www.seasip.demon.co.uk/index.html --------------------
John Elliott |BLOODNOK: "But why have you got such a long face?"
|SEAGOON: "Heavy dentures, Sir!" - The Goon Show
:-------------------------------------------------------------------------)
> I was just disassembling PMSFX2.COM the other day, and I found the
> following interesting facility that I haven't seen documented anywhere:
>
> When the self-extracting archive PMSFX2 has become is unpacking itself,
> any file called "!" will be displayed on the screen, followed by the
> question "Extract Y/N?"; if the user presses N, nothing else will be
> unpacked.
Interesting. How do you create a file named "!" in CP/M? "!" is a command
separator and consequently can't be used in filenames.
Ismael
--
+---------------------------------------------------------+
| ISMAEL CORDEIRO | ism...@cam.org |
| Montreal - Quebec - Canada | http://www.cam.org/~ismael |
+---------------------------------------------------------+
: > I was just disassembling PMSFX2.COM the other day, and I found the
: > following interesting facility that I haven't seen documented anywhere:
: >
: > When the self-extracting archive PMSFX2 has become is unpacking itself,
: > any file called "!" will be displayed on the screen, followed by the
: > question "Extract Y/N?"; if the user presses N, nothing else will be
: > unpacked.
: Interesting. How do you create a file named "!" in CP/M? "!" is a command
: separator and consequently can't be used in filenames.
Doubled ! marks in a CP/M 3 command become !s in the program input:
PMARC FILE.COM=PMSFX2.COM !! members ...
- however, this doesn't work in CP/M 3 Submit, which converts all ! marks
to carriage returns.
Alternatively, use ZCCP under which the command separator is ";" (and
what that does to the CP/M password system, I dread to think).
: > I was just disassembling PMSFX2.COM the other day, and I found the
: > following interesting facility that I haven't seen documented anywhere:
: >
: > When the self-extracting archive PMSFX2 has become is unpacking itself,
: > any file called "!" will be displayed on the screen, followed by the
: > question "Extract Y/N?"; if the user presses N, nothing else will be
: > unpacked.
: Interesting. How do you create a file named "!" in CP/M? "!" is a command
: separator and consequently can't be used in filenames.
I've not seen ! used as a command separator - as far as I can tell, it's
a legal file name in CP/M, MSDOS FAT, OS/2 FAT, and OS/2 HPFS (and Unix).
You can find it at http://www.seasip.demon.co.uk/Cpm/software/pmsfx21x.com
as a self-extracting archive.
While this is true under CP/M Plus (v3.x), CP/M 2.2 (and MSX-DOS it would
appear) allow "!" in filenames with no problem.
Witness the DateStamper/ZDDOS stamp file "!!!TIME&.DAT". Or BackGrounder-II
files that start with "!!"..
--
John D. Baker ->A TransWarp'802'd Apple //e CardZ180 Z-System nut //
Internet: jdb...@blkbox.com, jdb...@taronga.com
BBS: JOHN BAKER on PIC of the Mid-Town [(281) 326-5890] 1:106/31,
Z-Node #45 [(713) 937-8886], The Vector Board [(716) 544-1863]
> : > When the self-extracting archive PMSFX2 has become is unpacking
> : > itself, any file called "!" will be displayed on the screen, followed
> : > by the question "Extract Y/N?"; if the user presses N, nothing else
> : > will be unpacked.
>
> : Interesting. How do you create a file named "!" in CP/M? "!" is a
> : command separator and consequently can't be used in filenames.
>
> Doubled ! marks in a CP/M 3 command become !s in the program input:
It works! Thanks. I created a PMA COM file with the first file, a text one,
named "!" and it worked as you said. Great discovery!
> - however, this doesn't work in CP/M 3 Submit, which converts all ! marks
> to carriage returns.
Well, nothing is perfect, not even CP/M... ;-)
It is a legal character for a file name in CP/M and CP/M-86 but
not in Concurrent-CP/M-86, MP/M or CP/M-Plus, or any later OS
where '!' was either reserved or was used as a command separator.
I don't know about the other operating systems you mentioned, nor about
earlier versions of CP/M, but CP/M 3 uses "!" for chaining commands. If you
enter "DIR!TYPE FILE.TXT" you'll see the directory of the current drive and
after, the file named "FILE.TXT" will be sent to the screen. If you try to
create a text file with "ZDE FILE!DOC.TXT", ZDE will run but the filename
will be "FILE" and when you quit ZDE, CP/M will display "DOC.TXT?".
Excelent work John! The next mission should you choose to accept it will be
to incorperate your 8086 port of the -pm2- decryption into a 8086 PMA
extraction utility to allow uploading PMARC compressed mail packets.
Then after that converting the 86 asm into ANSI C so that it can be compiled
on unix boxes to allow easy use of CRR QWK with UQWK for usenet/email:-)
Regards
Johnathan.
--
* Meeeow ! Call Spuddy on +44 (01268) 515441 for FREE mail & Usenet access *