Fixed DEDUPE doesn't handle filenames with whitespace properly when symlinking

Jul 29, 2016
49
1
The symlinks that are created when DEDUPING don't point to the correct file when the original file has whitespace in its name. See below

---
Mon Sep 12, 2016 3:49:34p


C:\Users\Mark\Documents\dedupetest>ver /r

TCC 20.00.17 x64 Windows 8.1 [Version 6.3.9600]
TCC Build 17 Windows 8.1 Build 9600
Registered to MARK5-WIN8

C:\Users\Mark\Documents\dedupetest>dir

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\*

9/12/2016 15:43 <DIR> .
9/12/2016 15:43 <DIR> ..
0 bytes in 0 files and 2 dirs
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>md foo

C:\Users\Mark\Documents\dedupetest>echo Test One > foo\test1.txt

C:\Users\Mark\Documents\dedupetest>echo Test Two > "foo\test 2.txt"

C:\Users\Mark\Documents\dedupetest>dir foo\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\foo\*

9/12/2016 15:44 <DIR> .
9/12/2016 15:44 <DIR> ..
9/12/2016 15:44 10 test 2.txt
9/12/2016 15:44 10 test1.txt
20 bytes in 2 files and 2 dirs 8,192 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>md bar

C:\Users\Mark\Documents\dedupetest>copy foo\* bar\
C:\Users\Mark\Documents\dedupetest\foo\test 2.txt => C:\Users\Mark\Documents\dedupetest\bar\test 2.txt
C:\Users\Mark\Documents\dedupetest\foo\test1.txt => C:\Users\Mark\Documents\dedupetest\bar\test1.txt

2 files copied

C:\Users\Mark\Documents\dedupetest>dir bar\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\bar\*

9/12/2016 15:45 <DIR> .
9/12/2016 15:45 <DIR> ..
9/12/2016 15:44 10 test 2.txt
9/12/2016 15:44 10 test1.txt
20 bytes in 2 files and 2 dirs 8,192 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>start /elevated dedupe /l /s * foo\ bar\ > output.txt

C:\Users\Mark\Documents\dedupetest>dir

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\*

9/12/2016 15:46 <DIR> .
9/12/2016 15:46 <DIR> ..
9/12/2016 15:46 <DIR> bar
9/12/2016 15:44 <DIR> foo
9/12/2016 15:46 540 output.txt
540 bytes in 1 file and 4 dirs 4,096 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>type output.txt
C:\Users\Mark\Documents\dedupetest\foo\test 2.txt
Deleting C:\Users\Mark\Documents\dedupetest\bar\test 2.txt
Symbolic link created for C:\Users\Mark\Documents\dedupetest\bar\test 2.txt <<===>> C:\Users\Mark\Documents\dedupetest\foo\test
C:\Users\Mark\Documents\dedupetest\foo\test1.txt
Deleting C:\Users\Mark\Documents\dedupetest\bar\test1.txt
Symbolic link created for C:\Users\Mark\Documents\dedupetest\bar\test1.txt <<===>> C:\Users\Mark\Documents\dedupetest\foo\test1.txt
Total files: 4 Unique: 0 Duplicates: 4

C:\Users\Mark\Documents\dedupetest>dir foo\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\foo\*

9/12/2016 15:44 <DIR> .
9/12/2016 15:44 <DIR> ..
9/12/2016 15:44 10 test 2.txt
9/12/2016 15:44 10 test1.txt
20 bytes in 2 files and 2 dirs 8,192 bytes allocated
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>dir bar\

Volume in drive C is TI10657300E Serial number is 4aa7:d4ef
Directory of C:\Users\Mark\Documents\dedupetest\bar\*

9/12/2016 15:46 <DIR> .
9/12/2016 15:46 <DIR> ..
9/12/2016 15:46 <SYMLINK> test 2.txt [C:\Users\Mark\Documents\dedupetest\foo\test]
9/12/2016 15:46 <SYMLINK> test1.txt [C:\Users\Mark\Documents\dedupetest\foo\test1.txt]
0 bytes in 2 files and 2 dirs
163,760,132,096 bytes free

C:\Users\Mark\Documents\dedupetest>type bar\test1.txt
Test One

C:\Users\Mark\Documents\dedupetest>type "bar\test 2.txt"
TCC: (Sys) The system cannot find the file specified.
"C:\Users\Mark\Documents\dedupetest\bar\test 2.txt"

C:\Users\Mark\Documents\dedupetest>
 
Similar threads
Thread starter Title Forum Replies Date
x13 DEDUPE /N ? Support 2
E Fixed Issues with DEDUPE Support 0
thorntonpg WAD dedupe /N not recognised. Support 1
H Beta - DEDUPE /P - Too many prompts Support 0
vefatica Setting array variable ignores leading spaces (and @execarray doesn't) Support 4
MickeyF Why doesn't my python program get executed without specifying its path? Support 2
gworley Virtual network drive filename completion doesn’t get directories Support 0
vefatica Win10's ANSI doesn't like 2>NUL Support 10
vefatica Win10, alternative screen buffer, cursor doesn't blink Support 11
M Trying to use ffind with a @file.lst doesn't work Support 4
Charles Dye Ctrl-Shift-Up doesn't update directory history Support 1
gschizas Take Command (Environment) doesn't show v2 ANSI colors Support 30
vefatica Fixed JOBS /K doesn't work Support 2
E Fixed SHRALIAS doesn't work / SHRALIAS.EXE is missing in v20.11.35 Support 2
D WAD Reboot doesn't shutdown or restart Support 13
M Documentation Q.Search doesn't support selection? Support 1
R Fixed 7ZIP Compression Method Option Doesn't Work Support 1
T Regex engine doesn't recognize native DOS line endings Support 2
D Docking doesn't persist Support 5
E WAD DESCRIBE under TCC 19 doesn't work with diacritics Support 14
C VIEW PRINT /Wrap doesn't work Support 0
D CD doesn't always find everything Support 8
M View doesn't recognize Ctrl+End and Ctrl+Pos1 Support 2
M Ctrl-End doesn't work. DelToEnd is not executed Support 13
B Fixed FFIND doesn't find last character in file without CR/LF at EOF Support 1
G .BTM association doesn't work anymore Support 1
jadaml Documentation Is COPY realy doesn't work for any HTTP and FTP? Support 3
D do /s doesn't recurse Support 1
D WAD Alt-Left doesn't work, but Alt-Shift-Left does Support 1
I How to? Bat Works but BTM Doesn't Support 6
B %@lines doesn't count last line without cr/lf at eof Support 1
williamleara WAD ribbon doesn't remember expand/collapse setting Support 3
vefatica Why doesn't "IDE %_ININAME" work? Support 4
M How to? /Elevated doesn't do it for me... Support 8
D Why doesn't ffind find directory? Support 3
Phileosophos TPIPE doesn't work at all with v16 Support 3
D ejectmedia doesn't work in v16 Support 2
Phileosophos Fixed Register for all users doesn't register for all users Support 10
T "Checking for a newer version" doesn't complete Support 18
vefatica Doesn't IDE auto-indent? Support 3
C FFind /w works but FFind /= doesn't? Support 2
noahcoad WAD cmd.exe under tcc doesn't find apps Support 4
vefatica Fixed TPIPE doesn't /SPLIT at characters Support 0
M Site doesn't recognise cookies Support 0
D What's New doesn't mention copydir movedir Support 25
D TIMER OFF doesn't work Support 21
M @Files sure doesn't work the way I would have assumed it did! Support 4
M Why doesn't this @Field function work? Support 0
M Why doesn't this work? Support 12
vefatica ON BREAK doesn't always work Support 23

Similar threads