From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27657 invoked from network); 2 Oct 2021 17:56:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Oct 2021 17:56:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633197377; b=rwiemBvd9ypRqHumDMp7iMfPxV9i9+MkRR+XRGdk3FzPqpEOwdkS5zPGHPsz5HOynL0cVwGuU3 sple3dQTGOEku/Gt2kCglSPpbJa6xotszyB0x/u8c3WimIx2eqKPdNaEvKLnjP0uObFdGjjr7h I3l6g1jrSxiizdQSSeFceEClY6qVC7Toa5ZfTmt1W4EFhxWuJCZH9lkf5unERslr0+IHwmDZ0d 1qV5hjwDbtekU6a0mnACgSB1RSFqTxPIPQ5vEbiEE+8dKT7SfYth2hI2/NL6UHqFKcGq6sUVqb kRXs8wJvj40f8lyJS0lDAQNSLSuQoTZaUwrXdoCSIMIvdQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f180.google.com) smtp.remote-ip=209.85.166.180; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1633197377; bh=5a2/ys+MCGf5FiU4jhuSRl0+wxiJwoE6s2MURq7FjJ4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=NxcYK/TSYZbplbU0eeLIcUFxv0Lmj1xzI9gnme0XH1JgeHhtlppTWBsq1ODADimwTKE9ugnUOK svREoVYgGQBa7vE7adqUcXOREjXfA/ZC+rPa6wh2wQGqzfJyRWBdVsJktYJ4UT4wyIqzlITx9Z DET8eF/8xXMV6ndRpMcUzgMznTMGJWSGkty/lu/gKV1fudz1BI3W2MuVTVjW4ePLj4QjTl4qV4 i10urDwWJDE3L6Rey4DtnmooIKxOQwNXV2CirHlwHfdVUccAUB8vgzwOUPHcXvo0JNt9YQMNHq FizAD+Uzd+2QA+bpQbuv6AcPevB8cCWTKGbpOL4/+LL5xw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=7qxLxu+RlxARWgyuTn/d/EUKNOpSoqqbdqMb/w0t67A=; b=GRT9xCNdoNx1LwznTNMJAlIINV Je3yDUGLZoc2+fPxCx+M+1s/wTL3K2cGTxrCWJwvtL40w9RUBghTrvn2pBSJ2EzicrkfoXloCW8gj gnlpEwMPMO+pZurVBzszvH262ZBlRs82G68CBCzXF1ZnNeCYqNzZ9sthPeg/bjvdh37fakd/kMGjo GUND/Nw9cll+fq7kLSCLhp0zwaWXsLnwCY5n6Y6OuznBbKPDwLxxL7jibdLfAtakt0k6T7mPzTp1j 6qz723ASn4FKTsuSEyNbEd9Nm4yiHN2zBgvRjZa2/7UMMQthbmMy4AbN1aXoucbD+rT/fH9LYH9O2 qcSnjtyQ==; Received: from authenticated user by zero.zsh.org with local id 1mWjFB-00073c-7s; Sat, 02 Oct 2021 17:56:17 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f180.google.com) smtp.remote-ip=209.85.166.180; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f180.google.com ([209.85.166.180]:34467) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mWjDw-0005yT-FW; Sat, 02 Oct 2021 17:55:00 +0000 Received: by mail-il1-f180.google.com with SMTP id t15so11538396ilj.1 for ; Sat, 02 Oct 2021 10:55:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=7qxLxu+RlxARWgyuTn/d/EUKNOpSoqqbdqMb/w0t67A=; b=dUkuVCQbTWIkRppen+zGvQFzIR9+BlTZek3MLhbxbWWbmpUXyOYg4vySF2a0Pa13rU 42F8Z4ehpbZo/puIhYkE8MoW7AstWnNwBrr3FqxNDXw137jrumFeeMH4mj7F18Sakw5J 3gbXp7s/mjC2TNffgTFonmyVp0/FBxNCJ7bEVe0pz+HN4uhbpY+vtPPGKayCzwquNvcz UTcAuSKVWH23McqpkOxYAyF/n9oqNnyoroxduWISiWBfIYyDBBenTp52BNLS7HTrDhnP vPeXAIekYah5/PeQOIXFfPVXTNjL3RhuGZHFz6T69jrYjV8Bnv8GglN8CJHv9Q5tsW1X S80g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=7qxLxu+RlxARWgyuTn/d/EUKNOpSoqqbdqMb/w0t67A=; b=x1OtJMEbMvVmrTWkWh4wB8jsswAAROcm6e1VphHL/sbX02/y+1CqOvjxBHeJmQ/OIH FqRLjrpEMSo5i4b4oJjNurqYcBEkeLqoXarYqT+wFTsCzmqGzo0/IL63PwtLtHyiX2aa qlYobtWgENv6VIgZWp9PIMxVK0Z4zJJBdnWsY1oKP5q1rg4uhzDPxr3somBlRldD6LBv A7cIvpMO/D3Hn6YcO8FR/0XShV8jLOhlejA0YUii0+xHEbWXkRpOvIQ9x1H7GeOqcGmZ NCocCyVZhxxkkNUBzhe2n4i2U2VbtC5PMmEx9ttXb22H8e59T8AcXcpBOEH2NiQkXDIx kThQ== X-Gm-Message-State: AOAM5300RlcpqpoTwrAAdoflYqM/tsLxh9GfY8owwM78Mv3670xLMeKx Hmm9u3NPXPn+hnIcErUKOV4nfubAcAeOS5v9cE11dAiu X-Google-Smtp-Source: ABdhPJyek9F37yhM30sdWebSAYTiKv3ZlFkJeb7BWpkh9qFCGgijsMGXhzLOY3dNsJOhzsmGznGH+u2W8K+3GW63L8g= X-Received: by 2002:a92:cdad:: with SMTP id g13mr3211507ild.103.1633197299276; Sat, 02 Oct 2021 10:54:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pier Paolo Grassi Date: Sat, 2 Oct 2021 19:54:23 +0200 Message-ID: Subject: Re: shared history file To: Zsh-Users List Content-Type: multipart/alternative; boundary="000000000000df214505cd626019" X-Seq: 27215 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --000000000000df214505cd626019 Content-Type: text/plain; charset="UTF-8" I forgot to mention that, while I was able to read the history file, the new commands typed were not written to it, and this is the problem I would like to solve thanks Pier Paolo Grassi Il giorno sab 2 ott 2021 alle ore 19:52 Pier Paolo Grassi < pierpaolog@gmail.com> ha scritto: > Hello, I was trying to implement a per project shell history file. > Some of these projects are on windows shared mounted via cifs. when I open > those files as history with fc -p I get: > > /root/.zshrc:440: locking failed for /mnt/docs/projects/devbox/.history: > operation not supported: reading anyway > zsh: locking failed for /mnt/docs/projects/devbox/.history: operation not > supported: reading anyway > > Is it possible to work around this? is it possibile in zsh to disable > locking the history file during write operations? I am the only one writing > to those files so I shouldn't risk a concurrent operation. > I tried using setopt HIST_FCNTL_LOCK but ended up with an emptied history > file. > > Pier Paolo Grassi > --000000000000df214505cd626019 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I forgot to mention that, while I was able to read the his= tory file, the new commands typed were not written to it, and this is the p= roblem I would like to solve
thanks

Pier Paolo Gras= si


Il giorno sab 2 o= tt 2021 alle ore 19:52 Pier Paolo Grassi <pierpaolog@gmail.com> ha scritto:
Hello, I was trying to = implement a per project shell history=C2=A0file.
Some of these projects= are on windows shared mounted via cifs. when I open those files as history= with fc -p I get:

/root/.zshrc:440: locking faile= d for /mnt/docs/projects/devbox/.history: operation not supported: reading = anyway
zsh: locking failed for=C2=A0 /mnt/docs/projects/devbox/.history: operation not supported: reading anyway=

Is it possible to work around this? is it possibi= le in zsh to disable locking the history file during write operations? I am= the only one writing to those files so I shouldn't risk a concurrent o= peration.
I tried=C2=A0using setopt HIST_FCNTL_LOCK but ended up = with an emptied=C2=A0history file.

Pier Paolo Grassi
--000000000000df214505cd626019--