Re: Problems with paths of Windows

Liste des GroupesRevenir à cl tcl 
Sujet : Re: Problems with paths of Windows
De : ralfixx (at) *nospam* gmx.de (Ralf Fassel)
Groupes : comp.lang.tcl
Date : 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

Date Sujet#  Auteur
17 May 25 * Problems with paths of Windows11Luis Alejandro Muzzachiodi
17 May 25 `* Re: Problems with paths of Windows10saito
18 May 25  `* Re: Problems with paths of Windows9Luis Alejandro Muzzachiodi
18 May 25   +- Re: Problems with paths of Windows1saito
18 May 25   +- Re: Problems with paths of Windows1saito
18 May 25   `* Re: Problems with paths of Windows6Alan Grunwald
18 May 25    `* Re: Problems with paths of Windows5et99
19 May 25     `* Re: Problems with paths of Windows4Luis Alejandro Muzzachiodi
19 May 25      +- Re: Problems with paths of Windows1Ralf Fassel
19 May 25      +- Re: Problems with paths of Windows1Ralf Fassel
19 May 25      `- Re: Problems with paths of Windows1et99

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal