X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; q=dns; s=default; b=Zw drPo263r+ln91uHMBuEihjCXjgVeEX5qL/JJtIv7GjLnqF02RbY0+INMvkJAFlfy hsFjF3N2EywD0aXqE3HLGYoOglByR+nh573YHZFz4c/0Bb4gWiF/7fb4/yS92Xg7 28Jh4SkvoXiyqrf2AQxWeoLWsORguax3jE0tPp1Kg= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; s=default; bh=jNSYLnjo P60wM6xG2AQCRgNkG4M=; b=lWyl49jhD6IIWtfbnieeEyyLotIHfRpBtyHzRUfZ ItYz1NIjoNkw68Zt0m77VNXy3TaC30avc5PHEB4FwacetNypULP23yNem81GRKpn EBoiIXBh6V8PC41EXkBxee+Tu5cWsHoG6df0ZNIAT/wrBbPfrWrsmR53FKSYa1EZ wTs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-vc0-f177.google.com MIME-Version: 1.0 X-Received: by 10.58.229.101 with SMTP id sp5mr1584119vec.42.1401723228237; Mon, 02 Jun 2014 08:33:48 -0700 (PDT) In-Reply-To: References: Date: Mon, 2 Jun 2014 09:33:48 -0600 Message-ID: Subject: Re: Native links break zsh From: Doug Henderson To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes On Mon, Jun 2, 2014 at 6:41 AM, Yuriy Chernysho wrote: > Hi! > > After adding > export CYGWIN='winsymlinks:nativestrict' > > command to my .zshrc file I'm experiencing the problem with zsh > HISTFILE. The message says: > History locking file failed: No such file or directory. > I don't know how this is related since HISTFILE isn't a link at all. > > Yuriy. The CYGWIN env variable must be set in the windows environment before the cygwin dll is loaded by the first cygwin program to execute. Setting it in the shell is too late, as it is set for shell children, but not the shell or the dll. If you installed cygwin to C:\cygwin, there will be a cygwin.bat script there which starts a bash shell in a command window. You can put the "set CYGWIN=..." command in that file before it starts the shell. If you start a terminal window from a menu item or icon, you must set this environment variable before the terminal start the bash shell, which usually means you must set it in the computer properties (advanced system settngs/advanced/environment variables). There is much more detailed info on the cygwin site. Usually google can find it for me. Doug -- Doug Henderson, Calgary, Alberta, Canada -- 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