Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
mkdir -p buldtin is possibly incorrect?
- X-seq: zsh-workers 21465
- From: George Kouryachy <frbrgeorge@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: mkdir -p buldtin is possibly incorrect?
- Date: Thu, 14 Jul 2005 23:02:33 +0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=eX9wsldAES5KAo++7/P25yk6TOKFiCxJWdz8Ymm+KQMXJWtDpCAqtSOQpDlotrjO2RVsUr15RxSL+cJ+JA0tOWU0PyWXGZKuvOkfyOoyAiCHO6WxBZe4uxkRLEEJ5Zo+SrJ568i+zwhhnYOxrkF0w8byW+2G85W23LcgrvonAXw=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Reply-to: George Kouryachy <frbrgeorge@xxxxxxxxx>
Hi.
Look at this, this is a part of zsh-4.3.0-20050611/Src/Modules/files.c:
120 static int
121 domkdir(char *nam, char *path, mode_t mode, int p)
122 {
123 int err;
124 mode_t oumask;
125 char const *rpath = unmeta(path);
126
127 if(p) {
128 struct stat st;
129
130 if(!lstat(rpath, &st) && S_ISDIR(st.st_mode))
131 return 0;
132 }
Why do you use "lstat" instead of "stat" in line 130?
I have my $HOME symlinked as "/home -> /var/home",
so any first attempt to use completion smaps like tths:
_store_cache:mkdir:16: cannot make directory `/home': file exists
--
George V Kouryachy (aka Fr. Br. George)
mailto:george at gmail dot com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author