home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.misc
- Path: sparky!uunet!cs.utexas.edu!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!UMRVMB.umr.edu!S103408
- From: S103408@UMRVMB.umr.edu
- Subject: Re: Re: Zero-length files
- Date: Sun, 10 Jan 1993 10:19:20 GMT
- Nntp-Posting-Host: umrvmb.umr.edu
- Organization: Univ of MO - Rolla
- Sender: cnews@umr.edu (UMR Usenet News Post)
- Message-ID: <1993Jan10.102242.10492@umr.edu>
- Lines: 38
-
- use a bogus command name that doesn't exist and redirect the
- results. The error goes to the screen and not the file, but the
- file is created. Try this:
-
- bogus > bogus
- ------------------------- Original Article -------------------------
- Newsgroups: comp.os.os2.misc
- Path: usenet-feed.cc.umr.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!howland.r
- From: mlevis@ringer.cs.utsa.edu (Mike Levis) (OS/2)
- Subject: Re: Zero-length files
- Message-ID: <1993Jan10.080524.12869@ringer.cs.utsa.edu>
- Organization: University of Texas at San Antonio
- References: <1ierslINNriq@usenet.INS.CWRU.Edu>
- Date: Sun, 10 Jan 1993 08:05:24 GMT
- Lines: 21
-
- In article <1ierslINNriq@usenet.INS.CWRU.Edu> al919@cleveland.Freenet.Edu (Bruce
- >
- >I can't find the original posting, but someone asked about
- >making zero-length files. In DOS you can do this with
- >
- >REM > FOO.BAR
- >
- >I haven't tried this in OS/2. That can be an exercise for the
- >reader :-)
-
- This works under a DOS session in OS/2, but not in an OS/2 session.
- It seems that an OS/2 sessions *really* treats a REM statement as
- a REM statement. To get around this in an OS/2 session, one way is:
-
- type FOO.BAR > FOO.BAR
-
- --
- ======= Mike Levis mlevis@ringer.cs.utsa.edu =======
- :: ftp ftp-os2.nmsu.edu (128.123.35.151) for OS/2 :: .--.
- :: software & information. Get /pub/os2/00Index :: (OS/2)
- :::::::: & /pub/os2/all/info/faq/faq20i.txt :::::::: ~--~
-
-