home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / os2 / misc / 41829 < prev    next >
Encoding:
Text File  |  1993-01-10  |  1.8 KB  |  50 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!cs.utexas.edu!wupost!crcnis1.unl.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!UMRVMB.umr.edu!S103408
  3. From: S103408@UMRVMB.umr.edu
  4. Subject: Re: Re: Zero-length files
  5. Date: Sun, 10 Jan 1993 10:19:20 GMT
  6. Nntp-Posting-Host: umrvmb.umr.edu
  7. Organization: Univ of MO - Rolla
  8. Sender: cnews@umr.edu (UMR Usenet News Post)
  9. Message-ID: <1993Jan10.102242.10492@umr.edu>
  10. Lines: 38
  11.  
  12. use a bogus command name that doesn't exist and redirect the
  13. results.  The error goes to the screen and not the file, but the
  14. file is created.   Try this:
  15.  
  16. bogus > bogus
  17. ------------------------- Original Article -------------------------
  18. Newsgroups: comp.os.os2.misc
  19. Path: usenet-feed.cc.umr.edu!moe.ksu.ksu.edu!zaphod.mps.ohio-state.edu!howland.r
  20. From: mlevis@ringer.cs.utsa.edu (Mike Levis) (OS/2)
  21. Subject: Re: Zero-length files
  22. Message-ID: <1993Jan10.080524.12869@ringer.cs.utsa.edu>
  23. Organization: University of Texas at San Antonio
  24. References: <1ierslINNriq@usenet.INS.CWRU.Edu>
  25. Date: Sun, 10 Jan 1993 08:05:24 GMT
  26. Lines: 21
  27.  
  28. In article <1ierslINNriq@usenet.INS.CWRU.Edu> al919@cleveland.Freenet.Edu (Bruce
  29. >
  30. >I can't find the original posting, but someone asked about
  31. >making zero-length files.  In DOS you can do this with
  32. >
  33. >REM > FOO.BAR
  34. >
  35. >I haven't tried this in OS/2.  That can be an exercise for the
  36. >reader :-)
  37.  
  38. This works under a DOS session in OS/2, but not in an OS/2 session.
  39. It seems that an OS/2 sessions *really* treats a REM statement as
  40. a REM statement.  To get around this in an OS/2 session, one way is:
  41.  
  42.    type FOO.BAR > FOO.BAR
  43.  
  44. --
  45. ======= Mike Levis   mlevis@ringer.cs.utsa.edu =======
  46. ::  ftp ftp-os2.nmsu.edu (128.123.35.151) for OS/2  ::  .--.
  47. ::  software & information.   Get /pub/os2/00Index  :: (OS/2)
  48. ::::::::  & /pub/os2/all/info/faq/faq20i.txt  ::::::::  ~--~
  49.  
  50.