Another help nit

May 20, 2008
11,518
102
Syracuse, NY, USA
"b" isn't mentioned in the table of disk/memory size format flags. I know it's mentioned further on but it belongs in the table.
 
May 20, 2008
11,518
102
Syracuse, NY, USA
On Tue, 24 Feb 2009 07:04:35 -0600, rconn <> wrote:

|---Quote---
|> "b" isn't mentioned in the table of disk/memory size format flags. I know it's mentioned further on but it belongs in the table.
|---End Quote---
|Since it's ignored (it equals a scale factor of 1) I don't know that
|putting it in the table serves much purpose, but I'll add it to the list.

It seems it **must** be present if you want @FILESIZE to give allocation in
bytes ... @FILESIZE[...,b,a].
--
- Vince
 
May 20, 2008
11,518
102
Syracuse, NY, USA
On Tue, 24 Feb 2009 09:07:01 -0600, vefatica <> wrote:

||---Quote---
||> "b" isn't mentioned in the table of disk/memory size format flags. I know it's mentioned further on but it belongs in the table.
||---End Quote---
||Since it's ignored (it equals a scale factor of 1) I don't know that
||putting it in the table serves much purpose, but I'll add it to the list.
|
|It seems it **must** be present if you want @FILESIZE to give allocation in
|bytes ... @FILESIZE[...,b,a].

Perhaps you'd change things to allow @FILESIZE[file_spec,,a].
--
- Vince
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
On Tue, 24 Feb 2009 07:04:35 -0600, rconn <> wrote:

|---Quote---
|> "b" isn't mentioned in the table of disk/memory size format flags. I know it's mentioned further on but it belongs in the table.
|---End Quote---
|Since it's ignored (it equals a scale factor of 1) I don't know that
|putting it in the table serves much purpose, but I'll add it to the list.

It seems it **must** be present if you want @FILESIZE to give allocation in
bytes ... @FILESIZE[...,b,a].

That would certainly be true if it weren't that the allocation option was removed a couple of years ago (in order to support /S). I need to update the docs.
 
May 20, 2008
11,518
102
Syracuse, NY, USA
On Tue, 24 Feb 2009 19:13:54 -0600, rconn <> wrote:

||It seems it **must** be present if you want @FILESIZE to give allocation in
||bytes ... @FILESIZE[...,b,a].
|
|That would certainly be true if it weren't that the allocation option was removed a couple of years ago (in order to support /S). I need to update the docs.

I don't see how they conflict, or even make life difficult for each other. My
(now abandoned) @DU[] had it right from the beginning ... whenever a filesize
was added to the byte total, a number of clusters was added to the cluster total
... a one-liner.

Anyway, if one were interested (as one might be) in the disk space used, bytes
allocated seems a must.
--
- Vince
 
May 20, 2008
3,515
4
Elkridge, MD, USA
rconn wrote:
| ---Quote (Originally by vefatica)---
| On Tue, 24 Feb 2009 07:04:35 -0600, rconn <> wrote:
|
|| ---Quote---
||| "b" isn't mentioned in the table of disk/memory size format flags.
||| I know it's mentioned further on but it belongs in the table.
|| ---End Quote---
|| Since it's ignored (it equals a scale factor of 1) I don't know that
|| putting it in the table serves much purpose, but I'll add it to the
|| list.
|
| It seems it **must** be present if you want @FILESIZE to give
| allocation in
| bytes ... @FILESIZE[...,b,a].
| ---End Quote---
|
| That would certainly be true if it weren't that the allocation option
| was removed a couple of years ago (in order to support /S). I need
| to update the docs.

The command

echo %@filesize[/s *,b,a] %@filesize[/s *]

indeed returned the same value twice, meaning that the parser accepted the
optional ,a parameter, but the code ignored it. Not up to your usual
standards...
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
Steve Fábián wrote:

> The command
>
> echo %@filesize[/s *,b,a] %@filesize[/s *]
>
> indeed returned the same value twice, meaning that the parser accepted the
> optional ,a parameter, but the code ignored it. Not up to your usual
> standards...

No, both the parser and the code ignored the "a". (Most of the variable
functions ignore any extraneous arguments.

Rex Conn
JP Software
 

rconn

Administrator
Staff member
May 14, 2008
12,404
152
vefatica wrote:

> On Tue, 24 Feb 2009 19:13:54 -0600, rconn <> wrote:
>
> ||It seems it **must** be present if you want @FILESIZE to give allocation in
> ||bytes ... @FILESIZE[...,b,a].
> |
> |That would certainly be true if it weren't that the allocation option was removed a couple of years ago (in order to support /S). I need to update the docs.
>
> I don't see how they conflict, or even make life difficult for each other. My
> (now abandoned) @DU[] had it right from the beginning ... whenever a filesize
> was added to the byte total, a number of clusters was added to the cluster total
> ... a one-liner.
>
> Anyway, if one were interested (as one might be) in the disk space used, bytes
> allocated seems a must.

If it was that critical, somebody should have noticed during the past
couple of years ...

Rex Conn
JP Software
 
May 20, 2008
11,518
102
Syracuse, NY, USA
vefatica wrote:



If it was that critical, somebody should have noticed during the past
couple of years ...

It's becoming increasingly common for bugs and other unfortunate things to go undetected for a long time. There's an awful lot of stuff in TCC. When someone raises a question about some feature, others start playing with that feature and that feature's features come to light. That'll continue.
 
May 20, 2008
11,518
102
Syracuse, NY, USA
It's becoming increasingly common for bugs and other unfortunate things to go undetected for a long time. There's an awful lot of stuff in TCC. When someone raises a question about some feature, others start playing with that feature and that feature's features come to light. That'll continue.

And it could very well be that folks continues using @FILESIZE[] with "a", thinking it was working since there was no indication that it wasn't!
 
May 20, 2008
3,515
4
Elkridge, MD, USA
vefatica wrote:
| And it could very well be that folks continues using @FILESIZE[] with
| "a", thinking it was working since there was no indication that it
| wasn't!

That's my fear as well. I have a UDF using ",bc,a".
--
Steve
 
Similar threads
Thread starter Title Forum Replies Date
Charles Dye Documentation Another help nit Support 3
Dan Glynhampton Documentation v15 help: Another mailto: link oddity Support 0
S Need help to execute TCC commands on another system Support 6
jdanielp Cannot step into and/or call another .bat file when debugging .bat file Support 2
vefatica Another popup problem Support 10
S How to? Runs start /w in invisible mode OR run program after exit of another one Support 3
G Press on another Window Support 24
M Another possibly strange remote registry issue Support 5
vefatica Another problem with build 22. Support 3
Patulus Yet another thread on CMD compatibility Support 16
M Take Command 18, migrating to another machine, license problem. Support 1
MickeyF Another TPIPE question Support 6
vefatica Another installer thingy Support 1
vefatica Another @EVERYTHING question Support 4
C Touch command — I Need to touch matching files in another directory. Support 5
M Another "What is wrong?" Support 8
Bill de Haan Another installation is in progress Support 6
fishman@panix.com Another Problem with The Installer Support 1
Charles Dye Another modest proposal Support 4
M WAD Another weird copy command errror... Support 2
M Yet another strange something re something called "@TCONVERT" Support 8
K_Meinhard Documentation Another installer nit Support 1
ehab aboudaya How to? change ALT-F6 to another key Support 1
A How to? Pass output from ffind to another command in a BTM file Support 5
M Another simple question re. Take Command/TCC window witdth in characters... Support 16
Q TCC: (Sys) The process cannot access the file because it is being used by another process. Support 0
M Another bit of weirdness.... Support 0
S MOVE from FTP directory to another FTP directory - bug?? Support 2
vefatica Another debugger observation Support 12
vefatica Another DO /L question Support 1
M Another TCMD "crash" situation... Support 2
B TCC doesn't run using another user Support 2
H Another multiple FTP password prompt issue Support 2
Peter Bratton Another little bug? Support 1
M Another problem with renaming files... Support 3
nikbackm Another HISTORY dialog issue Support 0
S Another 4NT 8.02 vs TCC 9.02 diff - MOVE command Support 3
p.f.moore Running another batch file without CALL Support 7
C Add link to ewriter help to program group... Support 3
samintz How to? Search for %(command) in Help? Support 1
Joe Caverly Favorites in eWriter Help Support 6
Joe Caverly Quick Search in eWriter Help Support 1
vefatica Online help? Support 2
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
JohnQSmith New online help file wrong logo Support 7
Jay Sage Documentation Function @DRIVE Missing in Help Lists Support 0
Charles Dye More help nits Support 0
D Documentation Typo in COPY help Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly Documentation COMMANDS in Version 27 help Support 8

Similar threads