home *** CD-ROM | disk | FTP | other *** search
/ pc.louisiana.edu/pub/unix/ / Louisiana_UNIX.tar / Louisiana_UNIX / sc621.symname.bugreport < prev    next >
Internet Message Format  |  1992-06-18  |  5KB

  1. Received: from usl.edu (rouge-gw.usl.edu) by armagnac.ucs.usl.edu with SMTP id AA20647
  2.   (5.65c/IDA-1.4.4 for <jpd@ucs>); Wed, 10 Jun 1992 15:50:15 -0500
  3. Received: from relay.tek.com by usl.edu (4.1/BSS-3.4)
  4.     id AA16164; Wed, 10 Jun 92 15:50:08 CDT
  5. Received: by relay.tek.com id <AA22261@relay.tek.com>; Wed, 10 Jun 92 13:41:27 -0700
  6. Received: from tekig7.pen.tek.com by tektronix.TEK.COM (4.1/8.0)
  7.     id AA26014; Wed, 10 Jun 92 13:44:32 PDT
  8. Received: from mimaster.PEN.TEK.COM (mimaster.TEK) by tekig7.pen.tek.com (4.1/8.0)
  9.     id AA15100; Wed, 10 Jun 92 13:41:23 PDT
  10. Received: by mimaster.PEN.TEK.COM (5.17/6.24)
  11.     id AA15209; Wed, 10 Jun 92 13:41:21 PDT
  12. To: (Jeff Buhrt) <nstar!sawmill!prslnk!buhrt@uunet.uu.net>
  13. Cc: (James Dugal) <jpd@usl.edu>
  14. Subject: SC 6.21 symbolic name (/d) bug
  15. Date: Wed, 10 Jun 92 13:41:19 -0700
  16. Message-Id: <15206.708208879@mimaster>
  17. From: Kevin Cosgrove     627-3259 <kevinc@mimaster.pen.tek.com>
  18. Status: RO
  19. Content-Length: 3745
  20. X-Lines: 121
  21.  
  22. Hi,
  23.  
  24.     I noticed some strange performance when deleting rows that
  25.     contain symbolic names.
  26.  
  27.     Synopsis:  Symbolic names should be deleted when the cell
  28.            they're in is deleted via deleting a range of cells,
  29.            a row, or a column.
  30.  
  31.     I've included a shar file containing "before.sc" and "after.sc"
  32.     which shows what happens.  The difference between before and
  33.     after is that I went to the cell labeled "lab2" via <g lab2>.
  34.     I then deleted the row via <d r>.  The row was deleted, but the
  35.     defined label wasn't.
  36.  
  37.     Cells referencing the deleted label were all updated to use the
  38.     label in the following row, "lab3" -- this part seems OK.
  39.  
  40.     Later....
  41.  
  42.     P.S.:    I have an enhancement request.  If one tries to name a
  43.         cell (/d) and the name already exists, an error message
  44.         is printed and the naming action aborts.  I'd prefer
  45.         that I be asked if I really want to use that name.  At
  46.         that point 'sc' would first undefine the symbolic name
  47.         and then name the current cell.  This behavior
  48.         facilitates what-ifs by simply moving a symbolic name
  49.         around.
  50. __________________________________________________________________________
  51.  
  52.         Kevin Cosgrove                  Tektronix, Inc.
  53.         Design Engineer                 PO Box 500, M/S 47-623
  54.         High Frequency Development      Beaverton, OR  97077
  55.         Kevin.E.Cosgrove@Tek.COM        (503) 627-3259
  56. __________________________________________________________________________
  57. Reagan:  Ask yourself if you're better off now than you were four years ago.
  58. Me:      Now, ask yourself if that's because of or in spite of Bush.
  59.  
  60.  
  61.  
  62. #!/bin/sh
  63. # This is a shell archive (produced by shar 3.50)
  64. # To extract the files from this archive, save it to a file, remove
  65. # everything above the "!/bin/sh" line above, and type "sh file_name".
  66. #
  67. # made 06/10/1992 20:29 UTC by kevinc@mimaster
  68. #
  69. # existing files will NOT be overwritten unless -c is specified
  70. #
  71. # This shar contains:
  72. # length  mode       name
  73. # ------ ---------- ------------------------------------------
  74. #    436 -rw-r----- before.sc
  75. #    407 -rw-r----- after.sc
  76. #
  77. # ============= before.sc ==============
  78. if test -f 'before.sc' -a X"$1" != X"-c"; then
  79.     echo 'x - skipping before.sc (File already exists)'
  80. else
  81. echo 'x - extracting before.sc (Text)'
  82. sed 's/^X//' << 'SHAR_EOF' > 'before.sc' &&
  83. # This data file was generated by the Spreadsheet Calculator.
  84. # You almost certainly shouldn't edit it.
  85. X
  86. set numeric
  87. format A 12 0 0
  88. define "lab1" B4
  89. define "lab2" B5
  90. define "lab3" B6
  91. leftstring A0 = "Kevin Cosgrove"
  92. leftstring A1 = "Testing /d and /u"
  93. leftstring A2 = @substr(@date(@now),1,24)
  94. label A4 = "lab1"
  95. let lab1 = 1
  96. label A5 = "lab2"
  97. let lab2 = 2
  98. label A6 = "lab3"
  99. let lab3 = 3
  100. label A8 = "copy of lab2"
  101. let B8 = lab2
  102. goto B7
  103. SHAR_EOF
  104. chmod 0640 before.sc ||
  105. echo 'restore of before.sc failed'
  106. Wc_c="`wc -c < 'before.sc'`"
  107. test 436 -eq "$Wc_c" ||
  108.     echo 'before.sc: original size 436, current size' "$Wc_c"
  109. fi
  110. # ============= after.sc ==============
  111. if test -f 'after.sc' -a X"$1" != X"-c"; then
  112.     echo 'x - skipping after.sc (File already exists)'
  113. else
  114. echo 'x - extracting after.sc (Text)'
  115. sed 's/^X//' << 'SHAR_EOF' > 'after.sc' &&
  116. # This data file was generated by the Spreadsheet Calculator.
  117. # You almost certainly shouldn't edit it.
  118. X
  119. set numeric
  120. format A 12 0 0
  121. define "lab3" B5
  122. define "lab2" B5
  123. define "lab1" B4
  124. leftstring A0 = "Kevin Cosgrove"
  125. leftstring A1 = "Testing /d and /u"
  126. leftstring A2 = @substr(@date(@now),1,24)
  127. label A4 = "lab1"
  128. let lab1 = 1
  129. label A5 = "lab3"
  130. let lab3 = 3
  131. label A7 = "copy of lab2"
  132. let B7 = lab3
  133. goto lab3
  134. SHAR_EOF
  135. chmod 0640 after.sc ||
  136. echo 'restore of after.sc failed'
  137. Wc_c="`wc -c < 'after.sc'`"
  138. test 407 -eq "$Wc_c" ||
  139.     echo 'after.sc: original size 407, current size' "$Wc_c"
  140. fi
  141. exit 0
  142.  
  143.