public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Native links breaks zsh
@ 2014-06-05 11:58 Yuriy Chernyshov
  2014-06-06  7:14 ` Linda Walsh
  0 siblings, 1 reply; 6+ messages in thread
From: Yuriy Chernyshov @ 2014-06-05 11:58 UTC (permalink / raw)
  To: cygwin

Greetings, it's me again.

I've added environment variable to zsh. The problem with locking still persists.
Here are some commands:

thegeorg@THEGEORG-NB2-W7:~$ zsh
thegeorg@THEGEORG-NB2-W7:~$ true
thegeorg@THEGEORG-NB2-W7:~$
zsh: locking failed for /home/thegeorg/.histfile: no such file or directory
thegeorg@THEGEORG-NB2-W7:~$ echo $CYGWIN
winsymlinks:nativestrict
thegeorg@THEGEORG-NB2-W7:~$ grep CYGWIN .zshrc
thegeorg@THEGEORG-NB2-W7:~$


Entire .zshrc can be found at:
https://github.com/georgthegreat/profile/blob/master/.zshrc

It seems that further investigation is required.
Thanks for the help.

Yuriy.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: Native links breaks zsh
  2014-06-05 11:58 Native links breaks zsh Yuriy Chernyshov
@ 2014-06-06  7:14 ` Linda Walsh
  2014-06-06 17:38   ` zsh bug (was Re: Native links breaks zsh) Linda Walsh
  0 siblings, 1 reply; 6+ messages in thread
From: Linda Walsh @ 2014-06-06  7:14 UTC (permalink / raw)
  To: cygwin

Yuriy Chernyshov wrote:
> Greetings, it's me again.
>
> I've added environment variable to zsh. The problem with locking still persists.
> Here are some commands:
>
> thegeorg@THEGEORG-NB2-W7:~$ zsh
> thegeorg@THEGEORG-NB2-W7:~$ true
> thegeorg@THEGEORG-NB2-W7:~$
> zsh: locking failed for /home/thegeorg/.histfile: no such file or directory
> thegeorg@THEGEORG-NB2-W7:~$ echo $CYGWIN
> winsymlinks:nativestrict
>   
----
I just wanted to verify -- if you remove the 'winsymlinks:nativestrict',
(i.e. unset the CYGWIN var if nothing else is in it), then it works and
doesn't give the above error?

That wasn't clear from your original post.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* zsh bug (was Re: Native links breaks zsh)
  2014-06-06  7:14 ` Linda Walsh
@ 2014-06-06 17:38   ` Linda Walsh
  2014-06-06 19:34     ` Yuriy Chernyshov
  0 siblings, 1 reply; 6+ messages in thread
From: Linda Walsh @ 2014-06-06 17:38 UTC (permalink / raw)
  To: cygwin

Linda Walsh wrote:
> Yuriy Chernyshov wrote:
>> Greetings, it's me again.
>>
>> I've added environment variable to zsh. The problem with locking 
>> still persists.
>> Here are some commands:  
> ----
> I just wanted to verify -- if you remove the 'winsymlinks:nativestrict',
> (i.e. unset the CYGWIN var if nothing else is in it), then it works and
> doesn't give the above error?
>
> That wasn't clear from your original post.
Trying to use hardlinks to make a broken setup work then blaming
'hardlinks' for it not working seems a bit far fetched.

This seems more like a zsh bug with little if anything to do
with cygwin...

I can think of ways zsh would fail if it tried to use hard-linking
on a file but then found unaccounted for links to the file.

It gets worse -- since if 1 link of a multi-linked file is "locked" --
all hard-linked copies will be locked as well.



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: zsh bug (was Re: Native links breaks zsh)
  2014-06-06 17:38   ` zsh bug (was Re: Native links breaks zsh) Linda Walsh
@ 2014-06-06 19:34     ` Yuriy Chernyshov
  2014-06-08  0:05       ` Andrey Repin
  0 siblings, 1 reply; 6+ messages in thread
From: Yuriy Chernyshov @ 2014-06-06 19:34 UTC (permalink / raw)
  To: cygwin

Removing environment variable fixes the problem.

Everything works fine with non-native links (i. e. CYGWIN not set)
and on native unix-like systems.

The only configuration that fails to "lock" the file (whatever it is)
is Cygwin with native hardlinks.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: zsh bug (was Re: Native links breaks zsh)
  2014-06-06 19:34     ` Yuriy Chernyshov
@ 2014-06-08  0:05       ` Andrey Repin
  2014-06-08  5:11         ` Yuriy Chernyshov
  0 siblings, 1 reply; 6+ messages in thread
From: Andrey Repin @ 2014-06-08  0:05 UTC (permalink / raw)
  To: Yuriy Chernyshov, cygwin

Greetings, Yuriy Chernyshov!

> Removing environment variable fixes the problem.

> Everything works fine with non-native links (i. e. CYGWIN not set)
> and on native unix-like systems.

> The only configuration that fails to "lock" the file (whatever it is)
> is Cygwin with native hardlinks.

If you carefully read parameter name, the setting is only relevant to the
windows native SYMBOLIC links (available since Vista).
Said that, your message doesn't make much sense.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 08.06.2014, <03:55>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: zsh bug (was Re: Native links breaks zsh)
  2014-06-08  0:05       ` Andrey Repin
@ 2014-06-08  5:11         ` Yuriy Chernyshov
  0 siblings, 0 replies; 6+ messages in thread
From: Yuriy Chernyshov @ 2014-06-08  5:11 UTC (permalink / raw)
  To: cygwin

Yes, the problem is related with soft links, of course.
Sorry for misprint.

On 8 June 2014 03:56, Andrey Repin <anrdaemon@yandex.ru> wrote:
> Greetings, Yuriy Chernyshov!
>
>> Removing environment variable fixes the problem.
>
>> Everything works fine with non-native links (i. e. CYGWIN not set)
>> and on native unix-like systems.
>
>> The only configuration that fails to "lock" the file (whatever it is)
>> is Cygwin with native hardlinks.
>
> If you carefully read parameter name, the setting is only relevant to the
> windows native SYMBOLIC links (available since Vista).
> Said that, your message doesn't make much sense.
>
>
> --
> WBR,
> Andrey Repin (anrdaemon@yandex.ru) 08.06.2014, <03:55>
>
> Sorry for my terrible english...
>

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2014-06-08  5:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-05 11:58 Native links breaks zsh Yuriy Chernyshov
2014-06-06  7:14 ` Linda Walsh
2014-06-06 17:38   ` zsh bug (was Re: Native links breaks zsh) Linda Walsh
2014-06-06 19:34     ` Yuriy Chernyshov
2014-06-08  0:05       ` Andrey Repin
2014-06-08  5:11         ` Yuriy Chernyshov

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 read-only IMAP folder(s) and NNTP newsgroup(s).