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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30887 invoked from network); 2 Oct 2021 23:13:42 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Oct 2021 23:13:42 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633216422; b=cNTuvpr6e11Tz3WWC32NMAsAuAq9biuxr32C5zP0Vz69sybOpt/HpThII4XluB27NRuaNwQoSY nbyE5HYh6iVU7t+H9w2gbY1h9Qk9RRZfVdDDe5z7fRQEUfaVIPgwv/suP1jRWLYoiCMIZCuCJG RpYbnpSRXBggErX5PRnlbcywdFDSO43Aaw0abv6fCHT6PR77GT0pfSdLhte3for1tH27r0Po8M Sur7yuzODwmj+iK297ij3ne18/RAxsw3hd/sWDAHz3shzXh0YuLNVHPsbiszTz3Mlslr+IkJqq dwR+siJ/x0WziU0wmJje4CUmX8E4D8+T72NVm57ctbWjsA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yb1-f178.google.com) smtp.remote-ip=209.85.219.178; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1633216422; bh=iD1JHRnJXvOoQm261gf0pM8YsayuNuB+/WxLF2UEbEw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=OZ57WsIBfzLwtMrcxyj7Da6Sp5XKRTIHHShTOS5UeP62r7yfJmXNt4yTNQ2xmqbARgFJwNZ4NM F769xtTMekO+f3jKBHjbd36lTOSXJMv92BdJ899iExMBVMkkhHIEg4HIyAYkKLvv2Rl+eXpCdJ F+vvE2dzm0dYhoR7hmg/VZHqieO3yT8RIfaa8KoZBTndfD5lg4fQ4k02nVwpLLmAMf0Qq7+P2B EMyUkZfCkTchplJtCnFdF+Zu118HRp1/49JaZTFqkPw26d+fZyjp5xi43C1LTLII5OlYPwdcjI 4f1aL2USzZQH4HsLsBkOfFNRyGZ13DEERKbot2vmMPYboA==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=2CJ0/XbcsUZah9ILgCRjtQrpNtzsO6txSGZ0S9j9rL4=; b=IeoKDKslQafpvGxTrFciQydNOm Ghfq8esiEBer2aB2XkgUUz8lEs64Acrd+peehBqooYNCcPH4MK1JNMu/PMSP8YLXGhUbU5pV6kM1I Hs1mOQWUOBkJ8Dp6+I9wpLybRpx3M7OXnhfQWuqTAAOGmjAnQP3QFehW86ykMh+vocYWmcWkz13eO CED/9hhAVCpjSIGi4RfMJj+FjTQn4o4lUyyujJoRa6+ji8E/Y1yVDgTSRMOcAgoSnhwohPuDyHOrq FaLZriXxHeVgsUp9uIBdCH16wlrM8PdvZJLBJdJYy5HIxxGJSXB0lmNCtOaMf+sxkp6htHBX4RrHN 4gCB2eeA==; Received: from authenticated user by zero.zsh.org with local id 1mWoCK-000M6v-VE; Sat, 02 Oct 2021 23:13:40 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yb1-f178.google.com) smtp.remote-ip=209.85.219.178; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yb1-f178.google.com ([209.85.219.178]:33726) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mWoBS-000LQU-9V; Sat, 02 Oct 2021 23:12:47 +0000 Received: by mail-yb1-f178.google.com with SMTP id v195so28248226ybb.0 for ; Sat, 02 Oct 2021 16:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2CJ0/XbcsUZah9ILgCRjtQrpNtzsO6txSGZ0S9j9rL4=; b=kug6DmoLdhe5wcyx3IDwvvqaHu2z1shvWJ7xN7WIj6gT1Qb9O1CCo5hEoixn4IvXcL KFZCOniStyD0DMy79o3/POelSI9ubSPl20UvFxpuiQtwI1c3BV3hkaPoyOvTqKU2WhkM jrBXonpSMzEfI9jz8zkLYfmjVOwORpI68vwseH51RnNuIzwKsZ+FdGUfUwJIavbIoYA4 1cegvC/qhlSdsVbPz5bo2Evzbq/KFoStlvYQ6h6mabNrQFyn/3eF70x0dZOxKuE2xqCN KRwSR0WuvFmDh6Pw81iUSzC823JwA/c+XVim3NzJWILHANSj2WjL9kQ7eP1TGd5JIjAa PpuA== 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:cc; bh=2CJ0/XbcsUZah9ILgCRjtQrpNtzsO6txSGZ0S9j9rL4=; b=IyhrjV8HPgf3G8ryyfZ2ltNUn3Q3imNGLA/Q24D9RyczvaG9e21BoV4SscbrpYCEr2 EGLjj9pFPg+cl301FZAWiwVE3uMpALBCnC/YAW5JWnG1ahEjRf3IRQ/boOHveVEjhixE UdGrCuxKQQHpe/mP0mUDl4l32zMqPuJsBAJfRm4JEs5u7o7xm0l7X4A+12iDXVNu32UV LOwSwMlgU20RLmkWluPRwH3vRaAArh+KDh5tjU15xIpQawtME2gyUCld3GECFdG0OMgU wYZwrnjGBfNSqlokgAoyoOQZuoF4GgfI1TKDQTQ/zCHPX7Ka7DQrrCHV5++NmmaTFEop ZCAw== X-Gm-Message-State: AOAM531se1go+j0PgWQdiiNNJQVxDTjRanTguVvEXS/ye0MlX4T/MNN4 syyKSmrcUXHl+rIRVPsbflh0M1vAgFIzCqnY2b+etA== X-Google-Smtp-Source: ABdhPJy9Vmj+OlMz5T/pgIGnh0wWGeS7LhEQUj5wHweSenlGLmTzh71EpOQm+eCXL1owr4LoZvQ6x7v/k8gZqj2rl38= X-Received: by 2002:a25:1d57:: with SMTP id d84mr6565453ybd.410.1633216364879; Sat, 02 Oct 2021 16:12:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sat, 2 Oct 2021 16:12:33 -0700 Message-ID: Subject: Re: shared history file To: Pier Paolo Grassi Cc: Zsh-Users List Content-Type: text/plain; charset="UTF-8" X-Seq: 27217 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: On Sat, Oct 2, 2021 at 10:53 AM Pier Paolo Grassi wrote: > 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. The lock mechanism is not to protect against multiple users writing those files, it's to protect against multiple zsh processes writing to the files. E.g. if you have more than one window open on the same "project", both zsh might attempt to write the file, even though you are "the only one" who needs to write. The problem here seems to be that your host system has symbolic links, so zsh is compiled to use that locking mechanism, but the remote server doesn't support creating one. Your best bet is to store the project history in a directory where a symbolic link can be created, instead of storing it inside the remote-mounted directory. The ~/.zlogin file is sourced before, and the ~/.zlogout file after, reading/saving history respectively, so if you need to copy the file contents from/to the remote directory to/from the file used by the current shell, you can do so there ... or in whatever other functions etc. you are using to keep track of which project you're in.