home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
pc.louisiana.edu/pub/unix/
/
Louisiana_UNIX.tar
/
Louisiana_UNIX
/
sc621.symname.bugreport
< prev
next >
Wrap
Internet Message Format
|
1992-06-18
|
5KB
Received: from usl.edu (rouge-gw.usl.edu) by armagnac.ucs.usl.edu with SMTP id AA20647
(5.65c/IDA-1.4.4 for <jpd@ucs>); Wed, 10 Jun 1992 15:50:15 -0500
Received: from relay.tek.com by usl.edu (4.1/BSS-3.4)
id AA16164; Wed, 10 Jun 92 15:50:08 CDT
Received: by relay.tek.com id <AA22261@relay.tek.com>; Wed, 10 Jun 92 13:41:27 -0700
Received: from tekig7.pen.tek.com by tektronix.TEK.COM (4.1/8.0)
id AA26014; Wed, 10 Jun 92 13:44:32 PDT
Received: from mimaster.PEN.TEK.COM (mimaster.TEK) by tekig7.pen.tek.com (4.1/8.0)
id AA15100; Wed, 10 Jun 92 13:41:23 PDT
Received: by mimaster.PEN.TEK.COM (5.17/6.24)
id AA15209; Wed, 10 Jun 92 13:41:21 PDT
To: (Jeff Buhrt) <nstar!sawmill!prslnk!buhrt@uunet.uu.net>
Cc: (James Dugal) <jpd@usl.edu>
Subject: SC 6.21 symbolic name (/d) bug
Date: Wed, 10 Jun 92 13:41:19 -0700
Message-Id: <15206.708208879@mimaster>
From: Kevin Cosgrove 627-3259 <kevinc@mimaster.pen.tek.com>
Status: RO
Content-Length: 3745
X-Lines: 121
Hi,
I noticed some strange performance when deleting rows that
contain symbolic names.
Synopsis: Symbolic names should be deleted when the cell
they're in is deleted via deleting a range of cells,
a row, or a column.
I've included a shar file containing "before.sc" and "after.sc"
which shows what happens. The difference between before and
after is that I went to the cell labeled "lab2" via <g lab2>.
I then deleted the row via <d r>. The row was deleted, but the
defined label wasn't.
Cells referencing the deleted label were all updated to use the
label in the following row, "lab3" -- this part seems OK.
Later....
P.S.: I have an enhancement request. If one tries to name a
cell (/d) and the name already exists, an error message
is printed and the naming action aborts. I'd prefer
that I be asked if I really want to use that name. At
that point 'sc' would first undefine the symbolic name
and then name the current cell. This behavior
facilitates what-ifs by simply moving a symbolic name
around.
__________________________________________________________________________
Kevin Cosgrove Tektronix, Inc.
Design Engineer PO Box 500, M/S 47-623
High Frequency Development Beaverton, OR 97077
Kevin.E.Cosgrove@Tek.COM (503) 627-3259
__________________________________________________________________________
Reagan: Ask yourself if you're better off now than you were four years ago.
Me: Now, ask yourself if that's because of or in spite of Bush.
#!/bin/sh
# This is a shell archive (produced by shar 3.50)
# To extract the files from this archive, save it to a file, remove
# everything above the "!/bin/sh" line above, and type "sh file_name".
#
# made 06/10/1992 20:29 UTC by kevinc@mimaster
#
# existing files will NOT be overwritten unless -c is specified
#
# This shar contains:
# length mode name
# ------ ---------- ------------------------------------------
# 436 -rw-r----- before.sc
# 407 -rw-r----- after.sc
#
# ============= before.sc ==============
if test -f 'before.sc' -a X"$1" != X"-c"; then
echo 'x - skipping before.sc (File already exists)'
else
echo 'x - extracting before.sc (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'before.sc' &&
# This data file was generated by the Spreadsheet Calculator.
# You almost certainly shouldn't edit it.
X
set numeric
format A 12 0 0
define "lab1" B4
define "lab2" B5
define "lab3" B6
leftstring A0 = "Kevin Cosgrove"
leftstring A1 = "Testing /d and /u"
leftstring A2 = @substr(@date(@now),1,24)
label A4 = "lab1"
let lab1 = 1
label A5 = "lab2"
let lab2 = 2
label A6 = "lab3"
let lab3 = 3
label A8 = "copy of lab2"
let B8 = lab2
goto B7
SHAR_EOF
chmod 0640 before.sc ||
echo 'restore of before.sc failed'
Wc_c="`wc -c < 'before.sc'`"
test 436 -eq "$Wc_c" ||
echo 'before.sc: original size 436, current size' "$Wc_c"
fi
# ============= after.sc ==============
if test -f 'after.sc' -a X"$1" != X"-c"; then
echo 'x - skipping after.sc (File already exists)'
else
echo 'x - extracting after.sc (Text)'
sed 's/^X//' << 'SHAR_EOF' > 'after.sc' &&
# This data file was generated by the Spreadsheet Calculator.
# You almost certainly shouldn't edit it.
X
set numeric
format A 12 0 0
define "lab3" B5
define "lab2" B5
define "lab1" B4
leftstring A0 = "Kevin Cosgrove"
leftstring A1 = "Testing /d and /u"
leftstring A2 = @substr(@date(@now),1,24)
label A4 = "lab1"
let lab1 = 1
label A5 = "lab3"
let lab3 = 3
label A7 = "copy of lab2"
let B7 = lab3
goto lab3
SHAR_EOF
chmod 0640 after.sc ||
echo 'restore of after.sc failed'
Wc_c="`wc -c < 'after.sc'`"
test 407 -eq "$Wc_c" ||
echo 'after.sc: original size 407, current size' "$Wc_c"
fi
exit 0