home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / unix / volume26 / kit / pch17 < prev    next >
Encoding:
Text File  |  1993-05-04  |  3.7 KB  |  129 lines

  1. Newsgroups: comp.sources.unix
  2. From: ram@acri.fr (Raphael Manfredi)
  3. Subject: v26i222: kit - the ultimate mailing kit, Patch17
  4. Sender: unix-sources-moderator@efficacy.home.vix.com
  5. Approved: WhoAmI@efficacy.home.vix.com
  6.  
  7. Submitted-By: ram@acri.fr (Raphael Manfredi)
  8. Posting-Number: Volume 26, Issue 222
  9. Archive-Name: kit/pch17
  10.  
  11. [The latest patch for kit version 2.0 is #28.]
  12.  
  13. System: kit version 2.0
  14. Patch #: 17
  15. Priority: HIGH
  16. Subject: some awk hang up with </dev/null within backquotes
  17. Date: Fri May  8 11:17:41 PDT 1992
  18. From: Raphael Manfredi <ram@eiffel.com>
  19.  
  20. Description:
  21.     Some awk hang up with </dev/null within backquotes. Apparently the
  22.     solution is to cat /dev/null on the awk process. I wanted to avoid
  23.     that extra process but on SUNs that simply did not work.
  24.  
  25. Repeat-By:
  26.     On a SUN (the only machine I was able to reproduce the problem on),
  27.     cd to kit/ (within the distribution) and try:
  28.  
  29.         sh range.SH        # If you ran make clean
  30.         ./range 4 1-
  31.     
  32.     The process hangs. Now hit ^D (that's ctrl-D) to release the process.
  33.     Aply this patch and try again. It works!
  34.  
  35. Fix:    From rn, say "| patch -p -N -d DIR", where DIR is your kit source
  36.     directory.  Outside of rn, say "cd DIR; patch -p -N <thisarticle".
  37.     If you don't have the patch program, apply the following by hand,
  38.     or get patch (version 2.0, latest patchlevel).
  39.  
  40.     After patching:
  41.         Configure -d
  42.         make
  43.         make install
  44.  
  45.     If patch indicates that patchlevel is the wrong version, you may need
  46.     to apply one or more previous patches, or the patch may already
  47.     have been applied.  See the patchlevel.h file to find out what has or
  48.     has not been applied.  In any event, don't continue with the patch.
  49.  
  50.     If you are missing previous patches they can be obtained from me:
  51.  
  52.         Raphael Manfredi <ram@eiffel.com>
  53.  
  54.     If you send a mail message of the following form it will greatly speed
  55.     processing:
  56.  
  57.         Subject: Command
  58.         @SH mailpatch PATH kit 2.0 LIST
  59.                ^ note the c
  60.  
  61.     where PATH is a return path FROM ME TO YOU either in Internet notation,
  62.     or in bang notation from some well-known host, and LIST is the number
  63.     of one or more patches you need, separated by spaces, commas, and/or
  64.     hyphens.  Saying 35- says everything from 35 to the end.
  65.  
  66.     To get some more detailed instructions, send me the following mail:
  67.  
  68.         Subject: Command
  69.         @SH mailhelp PATH
  70.  
  71.  
  72. Index: patchlevel.h
  73. Prereq: 16
  74. 2c2
  75. < #define PATCHLEVEL 16
  76. ---
  77. > #define PATCHLEVEL 17
  78.  
  79. Index: kit/range.SH
  80. Prereq: 2.0.1.1
  81. *** kit/range.SH.old    Fri May  8 11:17:37 1992
  82. --- kit/range.SH    Fri May  8 11:17:38 1992
  83. ***************
  84. *** 22,30 ****
  85.   # Numbers may be space or comma separated. Ranges are a-b. If a is missing,
  86.   # 1 is assumed. If b is missing, the maximum value is used.
  87.   
  88. ! # $Id: range.SH,v 2.0.1.1 92/05/02 14:17:22 ram Exp $
  89.   #
  90.   # $Log:    range.SH,v $
  91.   # Revision 2.0.1.1  92/05/02  14:17:22  ram
  92.   # patch16: created
  93.   # 
  94. --- 22,33 ----
  95.   # Numbers may be space or comma separated. Ranges are a-b. If a is missing,
  96.   # 1 is assumed. If b is missing, the maximum value is used.
  97.   
  98. ! # $Id: range.SH,v 2.0.1.2 92/05/08 11:17:30 ram Exp $
  99.   #
  100.   # $Log:    range.SH,v $
  101. + # Revision 2.0.1.2  92/05/08  11:17:30  ram
  102. + # patch17: some awk hang up with </dev/null within backquotes
  103. + # 
  104.   # Revision 2.0.1.1  92/05/02  14:17:22  ram
  105.   # patch16: created
  106.   # 
  107. ***************
  108. *** 49,57 ****
  109.       *-*)
  110.           end=`expr $i : '[0-9]*-\(.*\)'`
  111.           start=`expr $i : '\(.*\)-[0-9]*'`
  112. !         vector=`awk "
  113. !             BEGIN {for (i = $start; i <= $end; i++) printf(\"%d \", i);}"
  114. !             < /dev/null`
  115.           range="$range $vector"
  116.           ;;
  117.       *)
  118. --- 52,59 ----
  119.       *-*)
  120.           end=`expr $i : '[0-9]*-\(.*\)'`
  121.           start=`expr $i : '\(.*\)-[0-9]*'`
  122. !         vector=`cat /dev/null | awk "
  123. !             BEGIN {for (i = $start; i <= $end; i++) printf(\"%d \", i);}"`
  124.           range="$range $vector"
  125.           ;;
  126.       *)
  127.  
  128. *** End of Patch 17 ***
  129.