TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Bob Stout
from: George White
date: 1998-12-14 11:19:02
subject: Csplit 2.2

Hi Bob (and everybody else),

In looking at Jasen Betts new version of CSPLIT I have come across a
bug in the existing version in SNIPPETS. If the source files are
specified in the current directory on a different drive they will not be
found (if the full drive letter and directory path is given everything
is OK).

ie, if the current directory on c: is \test\csplit, and csplit is run
from e:\, the command "csplit csplit c:csplit.*" will fail, but
"csplit csplit c:\test\csplit\csplit.*" will run correctly.

Jasen's version handles this situation.

Fix: At line 929, change

    if (NULL != (sptr = strrchr (path, '\\')))

to

    if ((NULL != (sptr = strrchr (path, '\\'))) ||
       (NULL != (sptr = strrchr (path, ':'))))

George

 * SLMR 2.1a * Wishing you a Happy Christmas and a Peaceful New Year

--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-717904) (2:440/4)
SEEN-BY: 396/1 632/0 371 633/260 262 267 270 371 634/397 635/506 728 639/252
SEEN-BY: 670/218
@PATH: 440/4 255/1 251/25 396/1 633/260 635/506 728 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.