Skip to content

Commit 6bdb488

Browse files
author
Tom O'Hara
committed
todo item for spaces in filename for delete[-dir]-force; clarifies trace-var issue
1 parent 3c749c0 commit 6bdb488

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

tests/regression.batspp

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,11 +388,34 @@ Version: N.N.N.N
388388

389389
##------------------------------------------------------------------------------
390390

391-
## TODO: Track down bug with trave-vars
391+
## TODO2: Track down bug with trace-vars (i.e., due to its local variable $var)
392392
##
393393
## $ var=
394394
## $ trace-vars var
395395
## var=var;
396396
##
397397
## $ echo ">$var<"
398398
## ><
399+
400+
##------------------------------------------------------------------------------
401+
402+
## TODO3: Make sure quotes shown for files with delete[-dir]-force macros,
403+
## regardless of embedded spaces.
404+
## NOTE: This first needs support for embedded spaces
405+
##
406+
## subdir1="$TMP/temp-dir/temp subdir1-$$"
407+
## subdir2="$TMP/temp-dir/tempsubdir2-$$"
408+
## mkdir -p "$subdir1" "$subdir2"
409+
## file1="$subdir1/'abc def'.list
410+
## file2="$subdir2/'ghijkl'.list
411+
## touch "$file1" "$file2"
412+
##
413+
## TODO2:
414+
## ## delete-force "$file1" "$file2" | grep -c '"'
415+
## ## 2
416+
## ## delete-dir-force "$subdir1" "$subdir2" | grep -c '"'
417+
## ## 2
418+
##
419+
## delete-force "$file1" "$file2" | grep -c "files with embedded spaces"
420+
## 1
421+

0 commit comments

Comments
 (0)