Sujet : Re: Problems with paths of Windows
De : aleccp (at) *nospam* yahoo.com (Luis Alejandro Muzzachiodi)
Groupes : comp.lang.tclDate : 19. May 2025, 05:48:18
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <bb0734bd-8416-4882-827e-3532897ef3cb@yahoo.com>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
Thanks for your answers, but it seems I haven't been able to express my question clearly.
The question isn't about why the input isn't valid (it's a string, the slash is problematic, the spaces, etc.), but rather whether there's a reasonably simple way to make that input valid. Obviously, the simplest way would be to write the parameter "correctly." 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. As I said, I tried several solutions, but they didn't work: automatically converting the parameter to a list, using the file normalize and/or nativename commands, or, as a first idea, checking whether the parameter is a list or a string (spoiler: in TCL, everything is a string...). Having said all that, I hope I've clarified the point of the question, and again, thanks for answering.