Sujet : Re: Problems with paths of Windows
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tclDate : 19. May 2025, 10:07:12
Autres entêtes
Message-ID : <ygatt5h9dfj.fsf@akutech.de>
References : 1 2 3 4 5 6
User-Agent : Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)
* Luis Alejandro Muzzachiodi <
aleccp@yahoo.com>
| However, this comes through a procedure that allows the user to load
| one or more paths to add to those defined in the script, meaning it's
| not up to me.
It might be that this procedure already mangled the filenames, e.g. if it
did not quote \ correctly (or avoid it by using 'file join' in the first
place).
Your procedure
proc myproc { listofpaths } {
foreach p $listofpaths {
puts "$p - is valid? : [file isdirectory $p]"
}
}
works fine if it is passed correct input (i.e. a *list* of properly
constructed filenames). If the function input is already incorrect
- GIGO¹.
R'
---
¹
http://www.catb.org/jargon/html/G/GIGO.html