zsh-workers
 help / color / mirror / code / Atom feed
* Directory not recognized as directory
@ 2005-11-02 14:02 DervishD
  2005-11-02 18:42 ` Andrey Borzenkov
  0 siblings, 1 reply; 7+ messages in thread
From: DervishD @ 2005-11-02 14:02 UTC (permalink / raw)
  To: Zsh Workers

    Hi all :)

    In this message I will use \xNN notation for nonprintable
characters, but obviously they aren't shown this way except in the
$'' construct I use in the example. Any other instance should be
substituted on your minds with the appropriate nonprintable character
;)))))

    Using version 4.2.5:

    $ mkdir -- $'\x90' 
    $ stat *
    stat: \M-^P: no such file or directory

    It's because of this:

    stat64("\x90\xB0"...)

    If instead of "90" we use "91", then the added character is "B1",
etc. This has two problems: first one is that the builtin "stat"
fails. The second is that completion doesn't work because the
offending file name is not considered a directory. OTOH, this works:

    $ print *(/)
    \x90

    I'm really confused because I expected the last command to fail
too, I assumed that any "stat64" call will have its first parameter
mangled.

    Thanks in advance :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to...


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-11-02 20:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-02 14:02 Directory not recognized as directory DervishD
2005-11-02 18:42 ` Andrey Borzenkov
2005-11-02 18:56   ` DervishD
2005-11-02 19:24     ` Andrey Borzenkov
2005-11-02 19:32       ` DervishD
2005-11-02 19:55         ` Andrey Borzenkov
2005-11-02 20:32           ` DervishD

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).