From nobody Thu Aug 24 20:30:53 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RWvqW21ZSz4rYCH for ; Thu, 24 Aug 2023 20:31:03 +0000 (UTC) (envelope-from mail@souji-thenria.net) Received: from alisa.souji-thenria.net (alisa.souji-thenria.net [188.68.37.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RWvqV6wF4z3Mbx for ; Thu, 24 Aug 2023 20:31:02 +0000 (UTC) (envelope-from mail@souji-thenria.net) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=souji-thenria.net; s=20220813rsa; t=1692909060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PC9GGzm0rougqEo+RMgqY8QfAZ43zY8j74s7OJnoBxU=; b=w1NyTPvuRp+2FQZCWBlKD3oS9BcrIG7XyP7NlyTvk2tpjyX5lbeZEMk/Y0YrmRH0MHVrEc 6eE32btU9+Mn03Mz7Zf/dizdWkudrpR91lN5WPT6tSe4XBMz9q71q2YmOzZYL2HUIcYj6i dn+KtBSXVi4IIbKLYLWZyH9vJuuOBcU7efelHgpgN4i6DTTQMwOBTqqZP/Z5o2Xe9+FqkC gHBPT0vkBNMuvhC4lfmyPF5IlIC9FzWgt76fVgil+MwPHg5XZZLxCPnc4ZSBvhH5eH9xWv FGD84SGf5ni5y6UhNyqQKso1fIZplwyExuKbys3UHXMi5pxtOmezDfu+cwABiQ== Received: by alisa.souji-thenria.net (OpenSMTPD) with ESMTPSA id 24d2b1e4 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 24 Aug 2023 22:30:59 +0200 (CEST) Message-ID: <3220874a-3e72-4f93-b107-d27898b33d2b@souji-thenria.net> Date: Thu, 24 Aug 2023 22:30:53 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Nextcloud - sem_get(): Failed for key Content-Language: en-US To: Jens Carl , questions@freebsd.org References: <4bec0932-15b9-4f27-9194-21fbd37145b2@souji-thenria.net> <590f456b-9942-47de-a96a-6245a267af8d@jens-carl.de> From: Souji Thenria In-Reply-To: <590f456b-9942-47de-a96a-6245a267af8d@jens-carl.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4RWvqV6wF4z3Mbx X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:197540, ipnet:188.68.32.0/20, country:DE] On 8/24/23 22:12, Jens Carl wrote: > You have to install the php extension php-sysvsem. > For PHP8.2 it would be pkg install php82-sysvsem. Hey Jens, This extension is installed already. Also, php -m shows the module sysvsem. Looking for files that include sysvsem results in one hit: /usr/local/etc/php/ext-20-sysvsem.ini This file consists of one line: extension=sysvsem.so Do I have to activate the module anywhere else? Regards, Souji -- Souji Thenria From nobody Sun Aug 27 05:30:12 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RYMht03xPz4rVNC for ; Sun, 27 Aug 2023 05:30:22 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYMhs0rmGz4DQs for ; Sun, 27 Aug 2023 05:30:21 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=p9G77O7D; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::62a as permitted sender) smtp.mailfrom=grahamperrin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-99bf8e5ab39so271367366b.2 for ; Sat, 26 Aug 2023 22:30:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693114218; x=1693719018; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=S1pp4mLHd6vS3li0cXoHlpLF5G30tAKpz2y0lle6usg=; b=p9G77O7DQdqDvZf+HW6i4qzPKy6FgQKJFCRTTNEMbHvIo9AhS309w9HMl4nPBMnVbn GYiwvaTbDsyd+7Th2Tp4tLGrTKIPjOAud1ghfpJB65a/FAWE7FBbaalShng1Xq6uzLHl xUDVYEF0cfluaHqOTLRflcfyn9zUPqUA8o3hJlTIWfWvzH5ELxo7UYZuOoly1YAIJcPE Q9czVhSjp6IseGfC+6t/mctzQkPaO8DMpxGuDwlYgVlK88qxVvGopsjhrq8WDyZwR/O0 Ds9KAmAQYqSm/8WOv/Slo1TVkjLcTGbDauoiY8s/XWVUqpNyYyb9/H4Xd3TsHnd1N+LJ 1Ayw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693114218; x=1693719018; h=content-transfer-encoding:subject:from:content-language:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=S1pp4mLHd6vS3li0cXoHlpLF5G30tAKpz2y0lle6usg=; b=jtXLsWA2KztKcp8RDOqu7nnJxB5V2mmCZ+IUmdQVKCv9U6rhfjqlymn/4+2vGU4bGm JNX7jPzAG9dY/vLLZeVZIEFuXrVyKINxlerCjtszDmYXm5Pvqp8beKqmdrmFbcOwPT4m 7jKuPkdGnB/l/glWUe1/C6vkrJGUBAFqawajjL9c9TEN41C1tz/FEifiQEzc/ZN6v1an eznUCDTkHr0Ny/XcsEJ9tsSUtEyt5KxcHdvx37TL1EEpLrKRLaGhx2IQlwL2Lh102PX3 wuMjwAbzfk22b+h+lXzlaV9Awg0K+r6yN1coh5Ybt69nNhq2HTJ7BaOkq+y/agAenu28 EVEg== X-Gm-Message-State: AOJu0YzW22rBQXl9HqOEKr7efvCAWi6aQiYJfIzVdUhTVFS0ZCWS2HgY eigZddRE/2QaoaWkUE9dlYUW2V0SEHc= X-Google-Smtp-Source: AGHT+IF7sw3Qs8kc1oTlCd1ODUS/lVm+nbiTZw7QXAFXguVF2TzVXkKRuhhC1VewtFpL8WVhn299kg== X-Received: by 2002:a17:906:2d0:b0:9a1:d0bb:d215 with SMTP id 16-20020a17090602d000b009a1d0bbd215mr8782075ejk.5.1693114217918; Sat, 26 Aug 2023 22:30:17 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id f24-20020a1709067f9800b00977eec7b7e8sm3032085ejr.68.2023.08.26.22.30.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Aug 2023 22:30:16 -0700 (PDT) Message-ID: Date: Sun, 27 Aug 2023 06:30:12 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 To: FreeBSD questions Content-Language: en-US From: Graham Perrin Subject: git-merge(1) prior to a PR in in the github.com/freebsd area Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[grahamperrin]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62a:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RYMhs0rmGz4DQs I have a checkout of , and need to squash before I create a PR at , but I can't make sense of git-merge(1). Can anyone steer me? TIA From nobody Sun Aug 27 07:36:31 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RYQVg3X0Lz4rcVB for ; Sun, 27 Aug 2023 07:36:43 +0000 (UTC) (envelope-from 4250.82.1d5040001bade83.08b53edba66c935941ddb10046ee385b@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYQVf5KJnz4Zxw for ; Sun, 27 Aug 2023 07:36:42 +0000 (UTC) (envelope-from 4250.82.1d5040001bade83.08b53edba66c935941ddb10046ee385b@email-od.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=kHFvV5d1; spf=pass (mx1.freebsd.org: domain of 4250.82.1d5040001bade83.08b53edba66c935941ddb10046ee385b@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.82.1d5040001bade83.08b53edba66c935941ddb10046ee385b@email-od.com; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1693121803; x=1695713803; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info:subject:to:from:cc:reply-to; bh=GTwbMfUQqk7G7a6Nr7crPo8E2Nc38Jcf5SklEGS8Q7Y=; b=kHFvV5d156LR44xlegAjih8Q6Mie3uYkz6Xs1Cz0Hd0pR3dgjm4rrpRGuVc4ftyRxgL3xC0/BMj0srjmWMF29KZHr/zBmFUzGUWKIC23vxbiaRfnOPrgrh8hg9YZnzuvSEmIAJoQAF1knD/DjLqHxzqN1Rc2H84mzul4y8JVr10= X-Thread-Info: NDI1MC4xMi4xZDUwNDAwMDFiYWRlODMucXVlc3Rpb25zPWZyZWVic2Qub3Jn Received: from r3.us-east-1.aws.in.socketlabs.com (r3.us-east-1.aws.in.socketlabs.com [142.0.191.3]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 27 Aug 2023 03:36:33 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r3.us-east-1.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 27 Aug 2023 03:36:32 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1qaAK0-000753-Aa for questions@freebsd.org; Sun, 27 Aug 2023 08:36:31 +0100 Date: Sun, 27 Aug 2023 08:36:31 +0100 From: Steve O'Hara-Smith To: questions@freebsd.org Subject: Re: git-merge(1) prior to a PR in in the github.com/freebsd area Message-Id: <20230827083631.192eb52f7b99e9ebd6b54ccf@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) X-Clacks-Overhead: "GNU Terry Pratchett" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-2.55 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.85)[-0.848]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[steve@sohara.org,4250.82.1d5040001bade83.08b53edba66c935941ddb10046ee385b@email-od.com]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[142.0.191.3:received]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.82.1d5040001bade83.08b53edba66c935941ddb10046ee385b@email-od.com]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[sohara.org]; DWL_DNSWL_NONE(0.00)[email-od.com:dkim] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RYQVf5KJnz4Zxw On Sun, 27 Aug 2023 06:30:12 +0100 Graham Perrin wrote: > I have a checkout of > , and need to squash > before I create a PR at , > but I can't make sense of git-merge(1). > > > > Can anyone steer me? IME git rebase is more useful that git merge. -- Steve O'Hara-Smith From nobody Sun Aug 27 17:42:20 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RYgxg3B11z4rSW6 for ; Sun, 27 Aug 2023 17:42:31 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYgxf4n76z4WB4 for ; Sun, 27 Aug 2023 17:42:30 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=fcmfpUsw; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::12f as permitted sender) smtp.mailfrom=grahamperrin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-500aed06ffcso2227669e87.0 for ; Sun, 27 Aug 2023 10:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693158148; x=1693762948; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=lAeixk6vvrwdB56PemsBigsieDEYAq5xCiRszCk/6x4=; b=fcmfpUswRS3DODRqz7BgCjKyYNKAQQllD6S04HQ1/XbVi72VNUFQjV0KwwNY/2Kdsr XsVqA9ceIeeBoRhYU317LwHmSq9zt0CuOJewcPWF1bDxqI6AdSXD1aiAgaYb1lljzH/q 8vL5DZ3ZmpIDhwFeDPzaajpkDsZ8aZ4BqNRm1d2ayK9lBZoYlsiFXG+4673EtCDEnBuA vDO0ly8ZfWf8/ghA//Io9VgEMbKTJjL/EBQjrGsgmXZlh4f3cLAuhg3ZJOCC8rF1K6DR B8HwGVO4/Bd9yYHhRmKfnyboYl61b3ItNj2+7R0FzRuc40yxLov4lI6eyMzpyA0E7IUG YeLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693158148; x=1693762948; h=content-transfer-encoding:in-reply-to:subject:from:references:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=lAeixk6vvrwdB56PemsBigsieDEYAq5xCiRszCk/6x4=; b=iY0kTSKot2aprHGXjFlOZM0grqDNvpXK/dsM+52m9n+5Klv0y3/OBqsTZX+xqgEN1n DUISo7Yf7GxAoFWSGXaRyQn5m9eTSvQmmAQzSYG2Sz+fpNJYh1oZcP69TCMNtYfM9Laq scAPSQ1MQ47AFse5/0HTHVUAUTPLFwXjLr9ovaxWBRqV7cFZ6QXtPy6grgzmfmaMR1r5 pIg8PhFdETMGqfcOEvZ/SI0MUDSNcdSdaGByIieGmUMkvDmmeaG2uNuyx17dcbO/5vpo zlqVQNthOk6LDBfuAD4RVg9f9HNtpj9+1ZrwSA6TMd5KsldB2clir9utRpJsAyUdLHMO L6/g== X-Gm-Message-State: AOJu0YzKnIeRu96YSZO3ieuR4uisfpiDhzcIlVYW8qfDgwxnmsmRU54d Oq+9C1hxbfXWv+tFafPAJJC+irRfINE= X-Google-Smtp-Source: AGHT+IEcmM+YR9ci2xxDhT59ScU3LxKxREKfs9FF9NOz+gaPzl+fRY4pR7QYl9w/FC3OtIx6PJnj3A== X-Received: by 2002:a19:6d1c:0:b0:4fd:c83b:a093 with SMTP id i28-20020a196d1c000000b004fdc83ba093mr15372173lfc.1.1693158147735; Sun, 27 Aug 2023 10:42:27 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id f15-20020a50ee8f000000b0051e2670d599sm3574354edr.4.2023.08.27.10.42.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Aug 2023 10:42:23 -0700 (PDT) Message-ID: Date: Sun, 27 Aug 2023 18:42:20 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Content-Language: en-US To: questions@freebsd.org References: <20230827083631.192eb52f7b99e9ebd6b54ccf@sohara.org> From: Graham Perrin Subject: git-rebase(1) prior to a PR in in the github.com/freebsd area In-Reply-To: <20230827083631.192eb52f7b99e9ebd6b54ccf@sohara.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[grahamperrin]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::12f:from]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RYgxf4n76z4WB4 On 27/08/2023 08:36, Steve O'Hara-Smith wrote: > On Sun, 27 Aug 2023 06:30:12 +0100 > Graham Perrin wrote: > >> I have a checkout of >> , and need to squash >> before I create a PR at , >> but I can't make sense of git-merge(1). >> >> >> >> Can anyone steer me? > IME git rebase is more useful that git merge. I did use 'git rebase -i' with success four days ago, for a PR in someone else's repo (not a fork of a FreeBSD tree). Successful then, however I have used the command so rarely – like, only a handful of occasions over the past year or so – that my mind goes blank. Entirely blank, and using a search engine will make things far worse for me. What should I do first, for the PR above? Thanks From nobody Sun Aug 27 18:13:24 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RYhdY2l91z4rTM7 for ; Sun, 27 Aug 2023 18:13:37 +0000 (UTC) (envelope-from 4250.82.1d5040001c80130.cc965bf5162c43682c82b842888b940f@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYhdX1Ktzz4cmM for ; Sun, 27 Aug 2023 18:13:36 +0000 (UTC) (envelope-from 4250.82.1d5040001c80130.cc965bf5162c43682c82b842888b940f@email-od.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=hsRbzODA; spf=pass (mx1.freebsd.org: domain of 4250.82.1d5040001c80130.cc965bf5162c43682c82b842888b940f@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.82.1d5040001c80130.cc965bf5162c43682c82b842888b940f@email-od.com; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1693160016; x=1695752016; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info:subject:to:from:cc:reply-to; bh=5hAn0FW+MlkHaX+9gGY5vv+J1x88Q4n6/UFM+buoRrQ=; b=hsRbzODACl3F2ypiAB3pjAlPBVtgcN9XxbC1SqYyi6h7aNjWiTiaOrwU3EP/S36tKOZH4GCLR9BLXQ0mJWifZ/vZM8pWkdc8/6zmR3BJ7OtxQYAI5Z3DugOY7h3DO0kC/HVGW4UoFZ33uh5Y9xrFzOXaN2ROrG3JcoFkDthI4IY= X-Thread-Info: NDI1MC4xMi4xZDUwNDAwMDFjODAxMzAucXVlc3Rpb25zPWZyZWVic2Qub3Jn Received: from r2.us-west-2.aws.in.socketlabs.com (r2.us-west-2.aws.in.socketlabs.com [142.0.190.2]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 27 Aug 2023 14:13:28 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r2.us-west-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 27 Aug 2023 14:13:26 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1qaKGL-000ADC-IE for questions@freebsd.org; Sun, 27 Aug 2023 19:13:24 +0100 Date: Sun, 27 Aug 2023 19:13:24 +0100 From: Steve O'Hara-Smith To: questions@freebsd.org Subject: Re: git-rebase(1) prior to a PR in in the github.com/freebsd area Message-Id: <20230827191324.eb8e546fdfb61469dd14bc5a@sohara.org> In-Reply-To: References: <20230827083631.192eb52f7b99e9ebd6b54ccf@sohara.org> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) X-Clacks-Overhead: "GNU Terry Pratchett" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[steve@sohara.org,4250.82.1d5040001c80130.cc965bf5162c43682c82b842888b940f@email-od.com]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[142.0.190.2:received]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.82.1d5040001c80130.cc965bf5162c43682c82b842888b940f@email-od.com]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[sohara.org]; DWL_DNSWL_NONE(0.00)[email-od.com:dkim] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RYhdX1Ktzz4cmM On Sun, 27 Aug 2023 18:42:20 +0100 Graham Perrin wrote: > I did use 'git rebase -i' with success four days ago, for a PR in > someone else's repo (not a fork of a FreeBSD tree). Successful then, > however I have used the command so rarely – like, only a handful of > occasions over the past year or so – that my mind goes blank. Entirely > blank, and using a search engine will make things far worse for me. > > What should I do first, for the PR above? I would go with git rebase -i - it pretty much tells you what to do if you know what you want - but in this case it boils down to changing the pick in front of the commits to a sequence like edit squash squash ... Then tidying up the commit message. -- Steve O'Hara-Smith From nobody Sun Aug 27 19:50:56 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RYknx4Sj1z4rZSR for ; Sun, 27 Aug 2023 19:51:01 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYknw6FFdz4ncl for ; Sun, 27 Aug 2023 19:51:00 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=htTy2Kdw; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::533 as permitted sender) smtp.mailfrom=grahamperrin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-529fb04a234so3522478a12.3 for ; Sun, 27 Aug 2023 12:51:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693165859; x=1693770659; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=kA64LLm6m3pzMxLbIBTpvNDQx0AhWQ3DyABCNkbgEH8=; b=htTy2KdwSY8WhygiPQEgSrskGcE9K+7ehodL1BTtIIBH/5FpiS07W8Scdh1Ng9K3Ph flUDza97zWUlMe/06gwkKxzpNRqOQc73yt4F6fXQMr+uXt6cdlzShaanpqCDBZ1Nd91S D3PtgXFJMExpoUvs1skmJXes3TpdvY0kc0YmPXFodzsgQbT2d+Z4Ip5UVBPBHTfJI5l/ 7dTOw3dDx0BU7C6hlFjyDPHr7pTjwtM25bRgCDyybIoiFR/RarPelxwLDNXvztUV/L56 42o3avRRLAcLJoqMwPbxWzXXXLxguZe5HWuQ7Dlz02Nn0r1fHAf1CE28kpG2Car/cI+q NP6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693165859; x=1693770659; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kA64LLm6m3pzMxLbIBTpvNDQx0AhWQ3DyABCNkbgEH8=; b=PAyDO5uZuYf9aMFOcqfJaJTsFCko5brmXl3vXb7zQs9gfC4LpOJgtPs0CVUG+g6WsC YOZ3E2S4dWpoPyq4W1NxL6MCkugkxf3N4Gz37hRhhho3zEUTwmna//oPTBVnTeQIHADD gHsQRZEQrqhia+TT9P5lxS0hcqjNj7WsQEUfoelU9LIcUJFB6C4oiPorCUtviNxtX/Xa dEC5J3sA1xz0hU5cpKlu46Ptn0v0OTBcLRwtmQMknIsrOaZzLoxCCFDMdKZMt8TghFV8 g0Mq8Uir4eam1/BF0fvYzJBrN5hU0IHsrrhXG4YCGNYlgF6Kt9FnIudiONWL7b3NnvEU nolA== X-Gm-Message-State: AOJu0YycPVYSZvKe4wsCaPvv0r6ZcIdq7AZynS2dHL0E0SE/XBpHiAp4 pRn8xIOqiFUb3L66y2hVQxwnpT6+VsU= X-Google-Smtp-Source: AGHT+IHTGolhiLGsrqObnk1+Nc2mqqldxVxMVRUlryGHDCpr+11iudbJZ94YI4frQL8j3sW0J4vAng== X-Received: by 2002:aa7:dad5:0:b0:522:564d:6de with SMTP id x21-20020aa7dad5000000b00522564d06demr21247507eds.36.1693165858578; Sun, 27 Aug 2023 12:50:58 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id s17-20020a056402165100b0052328d4268asm3655920edx.81.2023.08.27.12.50.57 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Aug 2023 12:50:57 -0700 (PDT) Message-ID: <55dc4697-dafe-19fe-0017-20a6effbac2b@gmail.com> Date: Sun, 27 Aug 2023 20:50:56 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: git-rebase(1) prior to a PR in in the github.com/freebsd area Content-Language: en-US To: questions@freebsd.org References: <20230827083631.192eb52f7b99e9ebd6b54ccf@sohara.org> <20230827191324.eb8e546fdfb61469dd14bc5a@sohara.org> From: Graham Perrin In-Reply-To: <20230827191324.eb8e546fdfb61469dd14bc5a@sohara.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-2.95 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_SHORT(0.05)[0.046]; FREEFALL_USER(0.00)[grahamperrin]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::533:from]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RYknw6FFdz4ncl On 27/08/2023 19:13, Steve O'Hara-Smith wrote: > On Sun, 27 Aug 2023 18:42:20 +0100 > Graham Perrin wrote: > >> I did use 'git rebase -i' with success four days ago, for a PR in >> someone else's repo (not a fork of a FreeBSD tree). Successful then, >> however I have used the command so rarely – like, only a handful of >> occasions over the past year or so – that my mind goes blank. Entirely >> blank, and using a search engine will make things far worse for me. >> >> What should I do first, for the PR above? > I would go with git rebase -i - it pretty much tells you what to do > if you know what you want - but in this case it boils down to changing the > pick in front of the commits to a sequence like > > edit > squash > squash > ... > > Then tidying up the commit message. I did try 'git rebase -i' before my previous post, there was nothing to pick (or drop), which is partly why my mind went blank. Right now I can't repeat the routine, to get more detail, because I'm using my local copy of the main branch to update the OS. I might take another look tomorrow. Thanks From nobody Sun Aug 27 20:34:15 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RYlm04m1Pz4rcN0 for ; Sun, 27 Aug 2023 20:34:24 +0000 (UTC) (envelope-from 4250.82.1d5040001cd5c37.e5c099051dd81c970907da7262b1e8f5@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RYllz64rSz4tYB for ; Sun, 27 Aug 2023 20:34:23 +0000 (UTC) (envelope-from 4250.82.1d5040001cd5c37.e5c099051dd81c970907da7262b1e8f5@email-od.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=email-od.com header.s=dkim header.b=wooKjISC; spf=pass (mx1.freebsd.org: domain of 4250.82.1d5040001cd5c37.e5c099051dd81c970907da7262b1e8f5@email-od.com designates 142.0.176.198 as permitted sender) smtp.mailfrom=4250.82.1d5040001cd5c37.e5c099051dd81c970907da7262b1e8f5@email-od.com; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1693168464; x=1695760464; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:to:from:date:x-thread-info:subject:to:from:cc:reply-to; bh=CPDXqAfTYjsSWQMdRt9apMYWFSsfcpFR5gGdXODcm2M=; b=wooKjISC9iAPwzIOzhNbvAJg30KFu2TXtlVZ9/A0Cvnam+D/OcNPSPtHmZOD22hXxDFaaGWkZtoD0Jls0qMTcZhMU2DX2TRbBHMFVrviotRzrBNyrE45Mhvs7I1mC5kHSIcStknLN3ZVWrl2tUkmtAuzASqN+tPITN+QYvHQKVk= X-Thread-Info: NDI1MC4xMi4xZDUwNDAwMDFjZDVjMzcucXVlc3Rpb25zPWZyZWVic2Qub3Jn Received: from r2.us-west-2.aws.in.socketlabs.com (r2.us-west-2.aws.in.socketlabs.com [142.0.190.2]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 27 Aug 2023 16:34:20 -0400 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r2.us-west-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 27 Aug 2023 16:34:18 -0400 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1qaMSf-000Mfr-HM for questions@freebsd.org; Sun, 27 Aug 2023 21:34:16 +0100 Date: Sun, 27 Aug 2023 21:34:15 +0100 From: Steve O'Hara-Smith To: questions@freebsd.org Subject: Re: git-rebase(1) prior to a PR in in the github.com/freebsd area Message-Id: <20230827213415.27b35f49feaf6b6959f9df7c@sohara.org> In-Reply-To: <55dc4697-dafe-19fe-0017-20a6effbac2b@gmail.com> References: <20230827083631.192eb52f7b99e9ebd6b54ccf@sohara.org> <20230827191324.eb8e546fdfb61469dd14bc5a@sohara.org> <55dc4697-dafe-19fe-0017-20a6effbac2b@gmail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) X-Clacks-Overhead: "GNU Terry Pratchett" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-2.70 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MV_CASE(0.50)[]; FORGED_SENDER(0.30)[steve@sohara.org,4250.82.1d5040001cd5c37.e5c099051dd81c970907da7262b1e8f5@email-od.com]; R_SPF_ALLOW(-0.20)[+ip4:142.0.176.0/20]; R_DKIM_ALLOW(-0.20)[email-od.com:s=dkim]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[142.0.190.2:received]; MIME_TRACE(0.00)[0:+]; FROM_NEQ_ENVFROM(0.00)[steve@sohara.org,4250.82.1d5040001cd5c37.e5c099051dd81c970907da7262b1e8f5@email-od.com]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[email-od.com:+]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[sohara.org]; DWL_DNSWL_NONE(0.00)[email-od.com:dkim] X-Spamd-Bar: -- X-Rspamd-Queue-Id: 4RYllz64rSz4tYB On Sun, 27 Aug 2023 20:50:56 +0100 Graham Perrin wrote: > I did try 'git rebase -i' before my previous post, there was nothing to > pick (or drop), which is partly why my mind went blank. Ah try git rebase -i HEAD~ -- Steve O'Hara-Smith From nobody Mon Aug 28 21:37:33 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZP6j4mkcz4s0St for ; Mon, 28 Aug 2023 21:37:49 +0000 (UTC) (envelope-from mail@souji-thenria.net) Received: from alisa.souji-thenria.net (alisa.souji-thenria.net [188.68.37.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZP6h0Wkjz4P8v for ; Mon, 28 Aug 2023 21:37:47 +0000 (UTC) (envelope-from mail@souji-thenria.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=souji-thenria.net header.s=20220813rsa header.b=4AjlbqF7; spf=pass (mx1.freebsd.org: domain of mail@souji-thenria.net designates 188.68.37.165 as permitted sender) smtp.mailfrom=mail@souji-thenria.net; dmarc=pass (policy=quarantine) header.from=souji-thenria.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=souji-thenria.net; s=20220813rsa; t=1693258659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IZSfrfQh21RlsLIGvIonoknifa4oOTjV+AIWeDbj3uI=; b=4AjlbqF73Bsc+0nh8i9xURaP10tWzldlXdCpaf8vItw5gbk03tUkojmSI9iyK1323kIdbf gSzt/qDBBcF1iKuaG3zKanBBzrNru6ciVNCJg2Y4aVXynVSAHH+AEX61pYjMadP+ChGgzG mL1Wemn/bb5FAwWuwqb/2uR5uY3uutazadfc6mDu6btJ3itazHvdjcggeA3yIDgWYhpONP 7vSQgjTU92+kAJCHBh2MUWH3UXWiFnM3tQsCW+M2Dq+1MpoXJlsUuyYYghoy1VKCvfq7qZ iCE4TtYj30x7AYlBX1dzBg84bFqyVtcK1pPKfcjsVd+qdZuRREqEKaaGScKENA== Received: by alisa.souji-thenria.net (OpenSMTPD) with ESMTPSA id fadab8ba (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 28 Aug 2023 23:37:39 +0200 (CEST) Message-ID: <75f90c99-e965-438c-91af-4c43065c74c5@souji-thenria.net> Date: Mon, 28 Aug 2023 23:37:33 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Nextcloud - sem_get(): Failed for key From: Souji Thenria To: freebsd-questions@FreeBSD.org References: <4bec0932-15b9-4f27-9194-21fbd37145b2@souji-thenria.net> Content-Language: en-US Cc: Jens Carl In-Reply-To: <4bec0932-15b9-4f27-9194-21fbd37145b2@souji-thenria.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.88 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.991]; DMARC_POLICY_ALLOW(-0.50)[souji-thenria.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[souji-thenria.net:s=20220813rsa]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[freebsd-questions@FreeBSD.org]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:197540, ipnet:188.68.32.0/20, country:DE]; DKIM_TRACE(0.00)[souji-thenria.net:+]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4RZP6h0Wkjz4P8v On 8/24/23 20:44, Souji Thenria wrote: > Hello, > > Currently, I am running Nextcloud 27.0.2, and there are a lot of errors > like this one in my log: > [PHP] Error: sem_get(): Failed for key 0xa11: Function not implemented > at /usr/local/www/apache24/data/lib/private/Preview/Generator.php#272 > Ok, I think I solved it. I did set up Nextcloud in a jail. To get php82-sysvsem working, I had to set 'sysvmsg = new;' in the jail configuration. Jens, thank you anyway. I should have said in the initial question that the Nextcloud installation is in a jail; the problem might have been more apparent in that context. -- Souji Thenria From nobody Tue Aug 29 11:11:47 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZl9y045hz4rgQd for ; Tue, 29 Aug 2023 11:11:50 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZl9x6gxsz4kZh; Tue, 29 Aug 2023 11:11:49 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693307509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z7PFhqKYOFpOv9i4hGLJuj/9wMnUyLNOzrzUIDfBa0U=; b=j8ZYg7TjEpB2yTpMd8ztexhm1Gb5/drDmvusGHY8Q62ydmch4jjwaHe9/VSerhfQ7cXEaW LIjMSl481wAywdYzo6Ri5zAn+ovhAL1Nv/C9xSyEI9yf79me1jweQf0pUH4SgPhnK7mPSY DptJbMk6cIfW0BeetkRY7TKRZMbeQ1so7zcZiVp1Uk7F47cKQXmgB2otNxXDUW8NByV8b/ 7ji1j8fRW57qM/ry0Y0MS4sBQo0D4LeEVzDbbjTzE74fKmAuJx/DBTplW/07+sDxxIwUDK lUUnYH6GcoLhTp8OZcqC/sXLie51ySVEIk9d8fj96Nss+kpkpaePswv7IOOOAw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693307509; a=rsa-sha256; cv=none; b=qW7b1zJMPKV3HDOV2keN/4L+fc8jAMUqYYpB2T4hQKIIxR+FDE9lUJl1CxQL+ozoh3CJFh boYagldvZ1SZshsy4UIt73zVCFnrPodnQkry6OxTjahaCOVx1qeE4663OSr7fsmf+snAYX ZwwPZVhaDmCsDlFdS97upiyLGLsgC2hUuqRX5AI/HmNCfLLjCh0jjX1fSkCAh/Tdcg283O xOlwoeAesTJN+wMTxV9q9m9lXf69OO2/YmHL617o9/BLW14i9zDQh9oKa3vhVLHv1JGFOJ R9i3ppDX7ae7a//KmBMcXrwIW2OsIHo1A30632JzXi7PrZgL6l5K3MxUor1+8Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693307509; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=z7PFhqKYOFpOv9i4hGLJuj/9wMnUyLNOzrzUIDfBa0U=; b=Y5ZChDCozDLCCkO9X7TX1dRst3Oeqfrd/bCimuCjokpAqyJ9BKJrxOoZVc5rjNLIqT9tEk C/25hPjNHC3lH37PW87EffKV7ozCRUlEjAK4x9ft1EC8GoHrR8dB1Fzawyv5htuw2ZbxfQ /soyTbFFpZO8uvQfMMuUdp+0gYITZ10CAUQiAE170s/7okBFT2UkBxN/z35+gd/UhrcqHT um0O0Cbw9QoB97L9qNN/ESuI5CUGCOsjGwOoyS5jhy3J3OicQ1Up6XDEhqbBoZnPFPgWhy 16CbJe6jAesSVZEdqeD8zue1yhbrvtRz5IRZDDverTLNbLuRt8explYvtys3yw== Received: from ltc.des.no (ti0187a400-1976.bb.online.no [85.166.95.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RZl9x4j3czxfs; Tue, 29 Aug 2023 11:11:49 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.no (Postfix, from userid 1001) id 3DD064B613; Tue, 29 Aug 2023 13:11:47 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Graham Perrin Cc: questions@freebsd.org Subject: Re: glob, re_format(7) In-Reply-To: (Graham Perrin's message of "Sat, 19 Aug 2023 11:17:12 +0100") References: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com> <835b25ff-81a5-6c18-f335-e8141c8da81a@gmail.com> <8987c03b-8630-48e2-a303-6bbd9ff1900f@FreeBSD.org> <940473ca-2052-a490-c4e0-56785b5de839@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 29 Aug 2023 13:11:47 +0200 Message-ID: <861qfm2jd8.fsf@ltc.des.no> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Graham Perrin writes: > re_format(7) [...] Not what I was seeking, originally, however it > does contain much of what I want. No. Globs are not regular expressions. See the =E2=80=9CShell Patterns=E2= =80=9D section in sh(1). DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org From nobody Tue Aug 29 17:29:10 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZvYW5zPVz4s1ps for ; Tue, 29 Aug 2023 17:29:19 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZvYW1Wjwz4Fxg for ; Tue, 29 Aug 2023 17:29:19 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=Y1GIWdc7; spf=pass (mx1.freebsd.org: domain of grahamperrin@gmail.com designates 2a00:1450:4864:20::131 as permitted sender) smtp.mailfrom=grahamperrin@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-500913779f5so7468703e87.2 for ; Tue, 29 Aug 2023 10:29:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693330156; x=1693934956; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=UC6qJs9mPNbYELhU7z/1uSxDaR7AyazEnX/MDNY9dYY=; b=Y1GIWdc7XzRYnHNWdgx8wAVgHFsg8s32u1x5CcqHk+25NNKfh7ZnO1nncP0za0kqVl u52PS3pm8+Zh5vhtiCN6+41Y+vJ7l7PeBZICzgFATMMSKTsAoj0xp68KWcTPrETI4MMZ eslTqPqWr/pBrE/CzTswEBaa6z8AqyDIh5wcuOf8/i4bVIDio3ojcqbcgn23bfDcM7Oq 1mpKbz6NQ4GXYTF7CgJZAAeJRuRP58fSHbCwVkLBqrfVg1vJ5b5AbmSm3OAS08BxHTqO RE+91kqrgnpAja4A/t7AbnAZ6YzgSsA67vt73ZSTTYkwSNYzFEIW5MzYB+uxolIi7W09 KFCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693330156; x=1693934956; h=in-reply-to:from:content-language:references:to:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=UC6qJs9mPNbYELhU7z/1uSxDaR7AyazEnX/MDNY9dYY=; b=Hx2p0ErgxBMngCS+F1jSGyM9dODcpLvOZWMe9ynazOkBOwnYSMwRGUbMU9+DOBnDva VzprENkpXxWF4/OsyJ9uBmZwxD8vzm2j5HT46fw5bM1fDcxitk4V5uekyZThAPQacrwa POKX+z4AAFs91F6Olgn/si/6CvQwnf675xei+H5MToYrr7f/GTnw244ZNIrOsXyeWn6c svSqFwiyG/He3WTc+hwaYGM3iEpwHZGycqpK4nEYgmbfemzUYtJTLLCQrSkpMFq03629 xWWeu/7fB0odslBLOul2A0zXYrOMzryV40qS2YZ4qGZJHUBPWaORrWpG75SGa5yewxXP klwg== X-Gm-Message-State: AOJu0YwlmHrukROZar5u6xBZ12Z+9IvxI1TZQ7A4ZcSAN8dpRC5lzJDF izyLyQBAyET+lVjNW9ow+uNS+H7t4+Y= X-Google-Smtp-Source: AGHT+IHWfw/C+FMECykNOzL33dGxWtfuKtE+PTMfsPhfjUDyoB8VkIiVZRpj/s9/C0GUuVhGAi9rwQ== X-Received: by 2002:a05:6512:704:b0:500:8fe8:7e80 with SMTP id b4-20020a056512070400b005008fe87e80mr13672970lfs.26.1693330156142; Tue, 29 Aug 2023 10:29:16 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id q9-20020a170906940900b0099bccb03eadsm6124509ejx.205.2023.08.29.10.29.15 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Aug 2023 10:29:15 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------CXFvmY9WbwdNxAzVfTgyN0ro" Message-ID: Date: Tue, 29 Aug 2023 18:29:10 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: glob, re_format(7) To: questions@freebsd.org References: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com> <835b25ff-81a5-6c18-f335-e8141c8da81a@gmail.com> <8987c03b-8630-48e2-a303-6bbd9ff1900f@FreeBSD.org> <940473ca-2052-a490-c4e0-56785b5de839@gmail.com> <861qfm2jd8.fsf@ltc.des.no> Content-Language: en-US From: Graham Perrin In-Reply-To: <861qfm2jd8.fsf@ltc.des.no> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.98 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.985]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEFALL_USER(0.00)[grahamperrin]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; BLOCKLISTDE_FAIL(0.00)[80.42.66.93:server fail,2a00:1450:4864:20::131:server fail]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::131:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_NONE(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RZvYW1Wjwz4Fxg This is a multi-part message in MIME format. --------------CXFvmY9WbwdNxAzVfTgyN0ro Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 29/08/2023 12:11, Dag-Erling Smørgrav wrote: > Graham Perrin writes: >> re_format(7) [...] Not what I was seeking, originally, however it >> does contain much of what I want. > No. Globs are not regular expressions. See the “Shell Patterns” > section in sh(1). > > DES I understand the difference, thanks, but truly: re_format(7) does contain much of what I want/need (not limited to globs). --------------CXFvmY9WbwdNxAzVfTgyN0ro Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

On 29/08/2023 12:11, Dag-Erling Smørgrav wrote:

Graham Perrin <grahamperrin@gmail.com> writes:
re_format(7) [...]  Not what I was seeking, originally, however it
does contain much of what I want.
No.  Globs are not regular expressions.  See the “Shell Patterns”
section in sh(1).

DES
I understand the difference, thanks, but truly: re_format(7) does contain much of what I want/need (not limited to globs).
--------------CXFvmY9WbwdNxAzVfTgyN0ro-- From nobody Tue Aug 29 17:43:39 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RZvt63XDJz4s2bt for ; Tue, 29 Aug 2023 17:43:42 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RZvt6337Cz4Jlv; Tue, 29 Aug 2023 17:43:42 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693331022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lxevcv5vt6ajVimfOnWzY8oFaOFVXdwn8UzLfObSgWw=; b=AZy2lREkM1MZ7K7Lpda5YonwhEpW/Ux5xIiQGZyPZqSxMKE660ayQG+rtbB1TECAHj3Tna 0rXQkk+Gpt94JTJ0l9REXg2dub2sDaDN8ovFuUGyMYL2dBV3YD9V63HSC0CY4GiJqcDsvh vXu2NWFQ1b8a8Qaa7sOp/adaiSoj5yFLpf27aI2Z8jYiwkECHNI4vUV3Xz0SoGebwc41ID TlXle5WGO7zOhmLqL27/KFsVjoGatlhm+WNsDncwUvZEUlOv5UTGUwGjrvePzdqPhQQOTc FcTHssDoTYIQDjR7CHIf9QYgbNS6noTnnZLHQac64lHyMb70DgsYwI9RJSbR+w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693331022; a=rsa-sha256; cv=none; b=mjYr/epe5r5/5is3OhS1yS/zMNT/BRzGVdNRIL5SS1AwENyfEWSXkCVQsCpohwE8LOVVr+ oMPTwNf4q+crCkcFWbT40DqOGg42jCy2wOV8MSHYCR/9siAHcB39EsnzeucGICdcBXjngT 3imwon6DkC/tn5ZJk6LIZuLlxRTqw6pOxRB9BmAq4Tyejqd47f7USMGx/4KBi8SPghdero M89nn0icsnI0zYPt6XEvPegwYvtRDA0R3RtoSDInyGxnHmJ1OFMihDQgsAThf4nAfkMejk AyzzH9O4s0inFiib/EeOhSuHAIGpwfuRkFZcqscqxGnD7NPmGQ7V0cUXVZXqsQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693331022; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=lxevcv5vt6ajVimfOnWzY8oFaOFVXdwn8UzLfObSgWw=; b=jc1DFCTIBeE63SpFgoXLSI156dh/moq27w1QHhzy0zz63WGRpN0btBlAMz9/vRTxmh+FhY hFylpLc6giJZzQp60V2wZL5NpTkk6LGWf5qKFAwy1rWB2m6sNfiSDPX9sfZGHBr0u2jx08 tUNUPQSqIAzApDbd3zeYVGrDCcgLXofmqu51F7KHaaEALXG54DpKoQ/XcVRKccKx5Goh6i y9GooCCkKz5YQvIDBg6oX3ZNtdQmrhyTwd/S3gQtOJRmaLA0e+WzPDjYl7eK9tEt1LT52d 7VkurZoJVHCz2hBhimHxRWKD9kdEta2HOUREj7L8GJm+ChQAGmes/kuN80AckQ== Received: from ltc.des.no (ti0187a400-1976.bb.online.no [85.166.95.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4RZvt617G6z178H; Tue, 29 Aug 2023 17:43:42 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.no (Postfix, from userid 1001) id ED3524AF5C; Tue, 29 Aug 2023 19:43:39 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Graham Perrin Cc: questions@freebsd.org Subject: Re: glob, re_format(7) In-Reply-To: (Graham Perrin's message of "Tue, 29 Aug 2023 18:29:10 +0100") References: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com> <835b25ff-81a5-6c18-f335-e8141c8da81a@gmail.com> <8987c03b-8630-48e2-a303-6bbd9ff1900f@FreeBSD.org> <940473ca-2052-a490-c4e0-56785b5de839@gmail.com> <861qfm2jd8.fsf@ltc.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 29 Aug 2023 19:43:39 +0200 Message-ID: <86wmxd2184.fsf@ltc.des.no> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Graham Perrin writes: > I understand the difference, thanks, but truly: re_format(7) does > contain much of what I want/need (not limited to globs). In that case, what you wanted was not what you asked for. Perhaps you should work on that. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org From nobody Wed Aug 30 01:02:30 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rb5gp5xWlz4rRgD for ; Wed, 30 Aug 2023 01:05:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rb5gn6gtzz3YtJ; Wed, 30 Aug 2023 01:05:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Authentication-Results: mx1.freebsd.org; none Received: from terra.edvax.de ([178.12.118.146]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MPGmZ-1qKz8o33l7-00PeLz; Wed, 30 Aug 2023 03:05:15 +0200 Received: from r56.edvax.de (r56 [10.200.1.11]) (authenticated bits=0) by terra.edvax.de (8.17.1/8.17.1) with ESMTPA id 37U15AYP035759; Wed, 30 Aug 2023 03:05:10 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 30 Aug 2023 03:02:30 +0200 From: Polytropon To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= Cc: Graham Perrin , questions@freebsd.org Subject: Re: glob, re_format(7) Message-Id: <20230830030230.af0d15dc.freebsd@edvax.de> In-Reply-To: <86wmxd2184.fsf@ltc.des.no> References: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com> <835b25ff-81a5-6c18-f335-e8141c8da81a@gmail.com> <8987c03b-8630-48e2-a303-6bbd9ff1900f@FreeBSD.org> <940473ca-2052-a490-c4e0-56785b5de839@gmail.com> <861qfm2jd8.fsf@ltc.des.no> <86wmxd2184.fsf@ltc.des.no> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:LadLsWijd6R/nb83zMX1W36tz1v8z7jIkYd9zxFFqgar8AqrvQn tp+j0iq+w8yX73fB7Y9OviyuJsuIpd3UQasrP6mfwenlR+XdwCN4P4NnVOTk8wSiY8a4MCP VMHrMCa1jeN6C6vaVQyr/zxXmq6BHpqPFotYEk/72snIFoYNVLhA7+Yq+rsbKOCVi7cLHGk SQ2SpF4nvYrxhRL6VfYCw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:AK9QAu2cgy8=;byKmJjKsHHr73gdL46KFk5xPSqA tmhPA9GNXeLApPBsho0uICbatI9LVOdFkC6ue5L7JDReY/pALIaXI0Wk1Mix0PkDDZlIkwvZl 8Yh7jBbOo29gz9OC/FjiFNsjFSjP5nC8JDq4uj5yNwO6RC36QVP2DD4l0u21rhJ5KYLAbODKh wNAN6Z/Sb4ekrN9jbP3128rvaT6HiNsTxlhxBVuKo5+tHINKCT0f3bcf91KLlWQJdY96NEKRQ CZznckHI9dZv4+QFEDJ00Vr04nnZlDzYInCMPYRVU6w0JGWkMoDtueXuHIEAdX258aRgFCa24 z/9CRIpje55tVkTbj9OubBPy4HqubaMe42DID1IfeZCfF4jz6sgNcRVMDO16r1Inzs9wH0ADf JQ7Bg3/zNFnVWiWHUxFUFpCDkKHQC40yaVYB/03bbX/NpJRmm+jTyZTjCEeyEtxgresXYDWm+ DpCcjMiTNUzrmkvrKcjPsSFE32r02ZMkuCkAKTJHUMHj/hIam633ocOFsRCIdg7KoSZl+5hwO j5vRH+KnGTybDDeUghMCSvvwDSJGH0+7Eb35AFY6am/xsL5SapTcRfil/d9de3T9G9FXb1xrZ 8Wuv0EtCgN5HHczEN2YB0Om7pfLSRKBMS8gOWKWxDx00kL1V8dJ5pidgQ+joFtI7njU9RsXzT FbtRNhRKCg2RxOQT31IJK2gXetUNyaacjD+gPImyR23gO9ycsenRrYJTH8si5sNhhzohcQMOP dRqtE2a4Xd7hdPGsyM/LPPiZF/tul7i2tKoDA1q3L2OBpRvWyxMo63oENhVFNVIvUuoCK77+q Cy+meyVvRk+w+NRd6iMzTLrFYvNw4JZn3iLVh9szn4ed0IFgmNkm+79lADZNSq3zcwrMXVeLu C7rRAxAxL1U8Yzw== X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE] X-Rspamd-Queue-Id: 4Rb5gn6gtzz3YtJ On Tue, 29 Aug 2023 19:43:39 +0200, Dag-Erling Sm=F8rgrav wrote: > Graham Perrin writes: > > I understand the difference, thanks, but truly: re_format(7) does > > contain much of what I want/need (not limited to globs). >=20 > In that case, what you wanted was not what you asked for. Common UNIX interaction: You asked for it, you got it. ;-) --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From nobody Wed Aug 30 05:01:27 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RbBwL07txz4rgZj for ; Wed, 30 Aug 2023 05:01:38 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RbBwK5dNvz4RDq; Wed, 30 Aug 2023 05:01:37 +0000 (UTC) (envelope-from grahamperrin@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bd0a5a5abbso47963421fa.0; Tue, 29 Aug 2023 22:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693371695; x=1693976495; darn=freebsd.org; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=dK1ihL5uAjmeNI+QtyrJR4+ofkGmys3uFR98LpAB2IE=; b=I33c3Fz/IEAql1+r+8N0e3Y7o/5jS1PDYHo/S0CPuSEyMzdziW+Y0FWwDSLXjEBI/m 7aeReFBiXWRJPS2lZP83Tcc1bJKolaS/r968ioU8e8q/glVMAnKfDmSJK3DzLfAFu6Uu J48EyWd/VIJJiRSPXwb9V4meCh95LwyFTuyD7gN6CsyPyfu3KeMDgbGbttqCACIg9m9A SUC/fuAWAeHkWO97aRRrIjBtM8YMEQfphesl4aESkJDzPp/f//VL44fYwiJ52tqgiAEU gdNmzSaUTBuYgxYsPqzD2h1x30lnK53NXEQ7aM1iuZ1rXCyKQNQ26O4HOxVBJK5nLZiS Bp/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693371695; x=1693976495; h=in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=dK1ihL5uAjmeNI+QtyrJR4+ofkGmys3uFR98LpAB2IE=; b=RU3pahd38LbCG3JVHBXB3eXlHhOD3Dr+1Ko1e8iQndg+fyr6/FrQbxbmxd9TO+sCTh cM+QMc9Y2fbTBQ6ZBc8AfuRE7zN3Kk4OZ8X25xnomcwyNnqy5jzzOs38p3N8VG2GEVer IQb40CJaviRvM15Ns8Vqnj6mtd3IDDz7+Si35cmXJwCXimL7N5L1OiOZYdQgy19gu22S poYkKEpSDq+I8wGgxT+UKoceB4+YHEbXnVFbcCncxZndYWTdFF97reGteqypzwQNN+NG G2Lucz7OjB95H99AcES/De7xxTqAdT4TNuaadxUfd2YUkZceJb9AQrfeLXEufKvGTJyS ZbZA== X-Gm-Message-State: AOJu0YwuwPrz1Jqh3KgUW+aJ8HT2geoPCM4mHKplsgLyieYgE/uLd9q8 cjEYBNMWVAZEnHvFdPebCZLopdANC2I= X-Google-Smtp-Source: AGHT+IEMMBhwOIOMzJBROTBlAmADiJEbxEbY75jJuVfgbfyzh0HFliMzVNqo8GxW+dJdpl8TAoYgPA== X-Received: by 2002:a2e:9409:0:b0:2bc:df66:5ff2 with SMTP id i9-20020a2e9409000000b002bcdf665ff2mr1045667ljh.9.1693371695018; Tue, 29 Aug 2023 22:01:35 -0700 (PDT) Received: from [192.168.1.10] (80-42-66-93.dynamic.dsl.as9105.com. [80.42.66.93]) by smtp.gmail.com with ESMTPSA id b8-20020a170906194800b0099bd5b72d93sm6738534eje.43.2023.08.29.22.01.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Aug 2023 22:01:33 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------VNbPoz7CY0fRKHQWmD1Q03sC" Message-ID: <05f917dc-6b67-6ddd-5d4e-c2280b5769bd@gmail.com> Date: Wed, 30 Aug 2023 06:01:27 +0100 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: glob, re_format(7) Content-Language: en-US To: =?UTF-8?Q?Dag-Erling_Sm=c3=b8rgrav?= Cc: questions@freebsd.org References: <88d40ec4-1b5a-4d5e-b6f7-618a3b31fdbb@gmail.com> <835b25ff-81a5-6c18-f335-e8141c8da81a@gmail.com> <8987c03b-8630-48e2-a303-6bbd9ff1900f@FreeBSD.org> <940473ca-2052-a490-c4e0-56785b5de839@gmail.com> <861qfm2jd8.fsf@ltc.des.no> <86wmxd2184.fsf@ltc.des.no> From: Graham Perrin In-Reply-To: <86wmxd2184.fsf@ltc.des.no> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4RbBwK5dNvz4RDq This is a multi-part message in MIME format. --------------VNbPoz7CY0fRKHQWmD1Q03sC Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 29/08/2023 18:43, Dag-Erling Smørgrav wrote: > what you wanted was not what you asked for. Perhaps you > should work on that. I did change the subject line in an effort to emphasise the change of focus. --------------VNbPoz7CY0fRKHQWmD1Q03sC Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 29/08/2023 18:43, Dag-Erling Smørgrav wrote:
what you wanted was not what you asked for.  Perhaps you
should work on that.
I did change the subject line in an effort to emphasise the change of focus.
--------------VNbPoz7CY0fRKHQWmD1Q03sC-- From nobody Fri Sep 1 08:43:46 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RcWlz011sz4sFyb for ; Fri, 1 Sep 2023 08:43:59 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RcWlw2QM5z3Q1w for ; Fri, 1 Sep 2023 08:43:55 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nebelschwaden.de header.s=1687803001 header.b="F7/NxHqs"; spf=pass (mx1.freebsd.org: domain of listac@nebelschwaden.de designates 217.13.200.36 as permitted sender) smtp.mailfrom=listac@nebelschwaden.de; dmarc=none Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: sendmail@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPSA id 5147A1E0B18 for ; Fri, 1 Sep 2023 10:43:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nebelschwaden.de; s=1687803001; t=1693557828; bh=RB5+VZNoUO9N1+g/L1EW2oBLj18pKdtInIoOwYOlX84=; h=Date:To:Reply-To:From:Subject:From; b=F7/NxHqsMwD+ChPywqXbPMNuDbRbEjZR4lfnLB8iupodPrStx9f2u3hYi+UmEjENI nIeiun5V5ifIu1LyN3X0m8g2P04/6bBUgdjIvJojuuoTbjga15si53cQP2f9Oa4SoV e6+pBjHwUJhbw1nE1cJKK+EZkumTkWL65zaNrENAww+o+mHERa0b29tMLhLinlYrEr du2pjKLVU5BrQHkJk0o0RJq+P8zbZJz4ItBaSG4xhJq8xoYLWaWL7X7FoajnsQI5m9 z08X9SlR8SFm8VLYqQ7ZMcPaoZLC/jEUdEjCSPD5zv3VQ8A46xG/TcJ2KBVnlLEfTY eZ5xblcv5VWUQ== Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id 4ED4E112454 for ; Fri, 1 Sep 2023 10:43:46 +0200 (CEST) Message-ID: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Date: Fri, 1 Sep 2023 10:43:46 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: User Questions Reply-To: listac@nebelschwaden.de Content-Language: en-US From: Ede Wolf Subject: cut off last lines of a document Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.59 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:217.13.200.0/24]; R_DKIM_ALLOW(-0.20)[nebelschwaden.de:s=1687803001]; RCVD_IN_DNSWL_LOW(-0.10)[217.13.200.36:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_REPLYTO(0.00)[listac@nebelschwaden.de]; DMARC_NA(0.00)[nebelschwaden.de]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE]; TO_DN_ALL(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[nebelschwaden.de:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RcWlw2QM5z3Q1w Hello, From a file/output with an unknown amount of lines, I would like to filter out, or not display, the last 3 lines. Is there a way to archive this? For those also using linux, there is a "head -n -3" for this. That negative number option is not available on FreeBSD, but maybe there is an alterative way of doing this? Preferably /bin/sh compatible. Thanks Ede From nobody Fri Sep 1 09:37:32 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RcXxy3G11z4sJGL for ; Fri, 1 Sep 2023 09:37:42 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RcXxx0p27z3Wt2 for ; Fri, 1 Sep 2023 09:37:41 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nebelschwaden.de header.s=1687803001 header.b=VMQB+bXD; spf=pass (mx1.freebsd.org: domain of listac@nebelschwaden.de designates 217.13.200.36 as permitted sender) smtp.mailfrom=listac@nebelschwaden.de; dmarc=none Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: sendmail@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPSA id 81CDA1E0B32 for ; Fri, 1 Sep 2023 11:37:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nebelschwaden.de; s=1687803001; t=1693561055; bh=D4ov/fQ/S6Zgk63CW0ursoUVeTBSaAyBBYGBbmF9l+4=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To:From; b=VMQB+bXDoEeuRPN5aYZXfXLILcvXzwLctbPPwxwE82dYAQUMHEobf9fhQWtPy2Kib pPGbS2KbtadklGQWq+KPAj6rUfOC5l2NKg5jUtjnJTN3wMCn2hYue4rL4g6p1a+Gnk +NN9+fnPTfuwIlZeHpBl/DLVfzhY6Kg/qFJWCaEUKpWrNxtzg50cOgcx1Ydebg2ThU uChMcQCG55GS4U5XfRLDBje47er2uw1OXLxcsKKiRJNkl1c6UCxyqvcw65De+j3KRI ctv7m+70Qdp6aOQJ94A3g9Q+0GGdhMeMNMyEWraJfTD+S2EkyE3RxCUA6Lo/OTIirs Ctd2OLUsQlNbQ== Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id 4A1A6112466 for ; Fri, 1 Sep 2023 11:37:32 +0200 (CEST) Message-ID: Date: Fri, 1 Sep 2023 11:37:32 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: listac@nebelschwaden.de Subject: Re: cut off last lines of a document To: questions@freebsd.org References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Content-Language: en-US From: Ede Wolf In-Reply-To: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.59 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip4:217.13.200.0/24]; R_DKIM_ALLOW(-0.20)[nebelschwaden.de:s=1687803001]; RCVD_IN_DNSWL_LOW(-0.10)[217.13.200.36:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[nebelschwaden.de]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; HAS_REPLYTO(0.00)[listac@nebelschwaden.de]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE]; TO_DN_NONE(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[nebelschwaden.de:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RcXxx0p27z3Wt2 Am 01.09.23 um 10:43 schrieb Ede Wolf: > Hello, > > From a file/output with an unknown amount of lines, I would like to > filter out, or not display, the last 3 lines. Is there a way to archive > this? > > For those also using linux, there is a "head -n -3" for this. That > negative number option is not available on FreeBSD, but maybe there is > an alterative way of doing this? Preferably /bin/sh compatible. > > Thanks > > Ede > As a sidenote: If possible, I would like to avoid using "tail -r | tail -n +4 | tail -r" as well, as it again is specific to FreeBSD, so if there is a more universal solution, that would be preferred. Even though this of course is a FreeBSD mailing list. From nobody Fri Sep 1 09:50:06 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RcYDW2CRxz4sJng for ; Fri, 1 Sep 2023 09:50:19 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RcYDV5Dqbz3Xp1 for ; Fri, 1 Sep 2023 09:50:18 +0000 (UTC) (envelope-from archimedes.gaviola@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99bcf2de59cso214010766b.0 for ; Fri, 01 Sep 2023 02:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693561815; x=1694166615; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=LUrboPDkFwx86tu6qHtOmbsLpYsg1thO+8+h2kTjhjY=; b=PAYUT2Nes1Q7GD2HW116BP8cOYjsAUfCtPER43mwUkLFhPgIBLKoEVhfUiLcDZX54M ssZEQ4lfxj+pM+fzSequ+rC7wmy2UkIN6S9fjeWo5FXgJFssswktMx7554HCYSS+9/Ts wezUDrsL/ZF368LKFm6M/34H1BuJsSYep4bIMSZ41mZsKtChRU/++PWm4oCXEZ72e2/u AgrtUEmwBChv0PN0QzmqCkG26BCBxveDUcmtLKFFBCwlaugX7p+7SGNO4Ra3YsEDihv1 +11/58sQr6o1+2Gl6kcC82otDYOC4rHL5RwTr0eyJo584afxfZc9FJHy7ylVpoFkNeCh hA9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693561815; x=1694166615; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LUrboPDkFwx86tu6qHtOmbsLpYsg1thO+8+h2kTjhjY=; b=g8cO4jfk25CtETGuLk9WVIP5ZRz9zPYaT1Tf9kVrTwUg1r/D9vILtPEWQY+0AgVg/0 wRg+yYZsEXTqxJhvmwyXeg38ZpB/3iUhVZZItstZg560XglienC4fv1XrH4//RjCptd9 Z+8DufbxsJa0sGBzVPK4DBWymVG6hcac4Jv/te9P8YT1uCjC2zRMIsBBsxoAq/1dsXNG U2HOmAQ5Xl4FIRSRJ+WDMqK/NV87wT5hK/7YeGYyR9yQUMyVSMcV/IJ8HcxJ4SETs4sD YnVVy+KR2XG8hyYnMjwx6sNNiSPuaVEaQN/9aQgot7bD00W4dexG8cHcpkiL3n321q5j xFJw== X-Gm-Message-State: AOJu0YwOpgR4WvgRMPNHOoOX6I4OaF04sMJhzWDZ6NmWj5ZnuM/jOQ+1 ecaC8pI1Pb2W6Nsr4HukO3+oyn3RPZsxJH0FClzobHANjoI= X-Google-Smtp-Source: AGHT+IE4706KLLHQombMVWPN3clUI9FYvO7/QyxlhbuF/V0kZuolkUpVS8XLb/yRaYIA8zZpnOFOj+sZv8UvGvmVEGg= X-Received: by 2002:a17:907:78c1:b0:9a1:c991:a51c with SMTP id kv1-20020a17090778c100b009a1c991a51cmr1434353ejc.2.1693561815241; Fri, 01 Sep 2023 02:50:15 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> In-Reply-To: From: Archimedes Gaviola Date: Fri, 1 Sep 2023 17:50:06 +0800 Message-ID: Subject: Re: cut off last lines of a document To: listac@nebelschwaden.de Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="00000000000067154f06044916bf" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[] X-Rspamd-Queue-Id: 4RcYDV5Dqbz3Xp1 --00000000000067154f06044916bf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ede, Please try. head --lines=3D`wc -l | awk '{print $1-3}'` Thanks, Archimedes On Fri, Sep 1, 2023 at 5:37=E2=80=AFPM Ede Wolf w= rote: > Am 01.09.23 um 10:43 schrieb Ede Wolf: > > Hello, > > > > From a file/output with an unknown amount of lines, I would like to > > filter out, or not display, the last 3 lines. Is there a way to archive > > this? > > > > For those also using linux, there is a "head -n -3" for this. That > > negative number option is not available on FreeBSD, but maybe there is > > an alterative way of doing this? Preferably /bin/sh compatible. > > > > Thanks > > > > Ede > > > > As a sidenote: If possible, I would like to avoid using "tail -r | tail > -n +4 | tail -r" as well, as it again is specific to FreeBSD, so if > there is a more universal solution, that would be preferred. Even though > this of course is a FreeBSD mailing list. > > > --00000000000067154f06044916bf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Ede,

Please try.

head --lines=3D`wc -l <file> | awk '{print $1-3}= '` <file>

Thanks,
Archimedes

On Fri, Sep 1, 2023 at 5:37=E2=80=AFPM Ede Wolf <listac@nebelschwaden.de> wrote:
Am 01.09.23 um 10:43 sch= rieb Ede Wolf:
> Hello,
>
>=C2=A0 From a file/output with an unknown amount of lines, I would like= to
> filter out, or not display, the last 3 lines. Is there a way to archiv= e
> this?
>
> For those also using linux, there is a "head -n -3" for this= . That
> negative number option is not available on FreeBSD, but maybe there is=
> an alterative way of doing this? Preferably /bin/sh compatible.
>
> Thanks
>
> Ede
>

As a sidenote: If possible, I would like to avoid using "tail -r | tai= l
-n +4 | tail -r" as well, as it again is specific to FreeBSD, so if there is a more universal solution, that would be preferred. Even though this of course is a FreeBSD mailing list.


--00000000000067154f06044916bf-- From nobody Fri Sep 1 10:28:22 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RcZ4T2pZYz4sLhp for ; Fri, 1 Sep 2023 10:28:25 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RcZ4T17D6z3d3J for ; Fri, 1 Sep 2023 10:28:25 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-500a8b2b73eso3094763e87.0 for ; Fri, 01 Sep 2023 03:28:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693564103; x=1694168903; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PrzWbGEmpZy0+ecW5k5gfNtKlU4J0U5U/ro+LEMhnKc=; b=m8/i5Q9hleBB6bPR4vAUpLLyv2F/TYWmhNF0d64JXLm56Mi55vYGfxGPecAnF/mtkA df6avZ76bikG1CuAHy/AZuuiG8UPI+0NJH1koSyIdPGi0CGnZ6b1VSRaSPUT6sVnxKpk 3+/UzDDpysmpt6dF+EbMJkSKonFqaUdCP5XKq9Vz3M75b6dsj8mG8StmgI01pnyKsAxR oZKL3o9dAMFl1aCxTl8t0/FvKxGiMUeBM12CBQDcXHs3enVGhbNgMblCE/M4y5ZX3+kN C76mhCniuBDMLHso94N8fBPFdo1IBnKLXRxU31psY7gF48tU3ThpZ6g7wfTP3parJGTw xVWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693564103; x=1694168903; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PrzWbGEmpZy0+ecW5k5gfNtKlU4J0U5U/ro+LEMhnKc=; b=RCF2b8qaT9bdTWj+4MdVcCU4oy9SppvNdyZgcqb/qpyFnNVuiai6gNc5m7XUBjHioJ f1Arvv0Yo1FJpPsXc/SQsIDuk67p+gq+HqJcWlzPZe2F4BZ4yAmzK8kMAbrUXqfF8jD4 Jb/ZUNs9f9lhQ5eBlXCGIHdJX1GPCPw491jGsmnWnsbuCRHPSuXAf5ndbWO49rpAS0nn EDv1FvKopjAgN8MaxERwucI1C4AqX+E3DTPjjIbLvndn8fhKE7MStz0CzvBVSWXrM7+u MBheNwAceRG7K8lh6RkZc56Q/DXal6++EgMFf4XHLF5ipXqCdHIrrUXDvMaLVKzh5lVX rR1g== X-Gm-Message-State: AOJu0YzydSPsxaU31H1CJhz4Br5fncVD/r4Zbi+epte+/20seBtlJ9JZ CNQF48BsHPttNwHP4lvW4B2W4KRwBatLeWX1ao8/LyCL0TFQQSQp X-Google-Smtp-Source: AGHT+IE9AYwrCEPDrS3AWgO5aBtzKUM408+Haa7NZVTRkbWWncmRClNb8dqZVGF+W3Fg7Z+lD89BF0gpA1vIjv9jQe4= X-Received: by 2002:a05:6512:754:b0:4fe:8f66:28a3 with SMTP id c20-20020a056512075400b004fe8f6628a3mr1074610lfs.0.1693564102555; Fri, 01 Sep 2023 03:28:22 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> In-Reply-To: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> From: Michael Schuster Date: Fri, 1 Sep 2023 12:28:22 +0200 Message-ID: Subject: Re: cut off last lines of a document To: listac@nebelschwaden.de Cc: User Questions Content-Type: multipart/alternative; boundary="000000000000bcbc1f0604499ec5" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4RcZ4T17D6z3d3J --000000000000bcbc1f0604499ec5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 1, 2023 at 12:23=E2=80=AFPM Ede Wolf = wrote: > Hello, > > From a file/output with an unknown amount of lines, I would like to > filter out, or not display, the last 3 lines. Is there a way to archive > this? > > For those also using linux, there is a "head -n -3" for this. That > negative number option is not available on FreeBSD, but maybe there is > an alterative way of doing this? Preferably /bin/sh compatible. > For a first go, I'd try a combination of "wc -l" and "head". (don't have a BSD box up at the moment to check other utils) HTH Michael > Thanks > > Ede > > --=20 Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion' --000000000000bcbc1f0604499ec5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Fri, Sep = 1, 2023 at 12:23=E2=80=AFPM Ede Wolf <listac@nebelschwaden.de> wrote:
Hello,

=C2=A0From a file/output with an unknown amount of lines, I would like to <= br> filter out, or not display, the last 3 lines. Is there a way to archive this?

For those also using linux, there is a "head -n -3" for this. Tha= t
negative number option is not available on FreeBSD, but maybe there is
an alterative way of doing this? Preferably /bin/sh compatible.

For a first go, I'd try a combin= ation of "wc -l" and "head".
(d= on't have a BSD=C2=A0box up at the moment to check other utils)

HTH
M= ichael


Thanks

Ede



--
recursion, n: see 'recursion'
--000000000000bcbc1f0604499ec5-- From nobody Fri Sep 1 12:12:13 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RccPC4H1tz4sQTJ for ; Fri, 1 Sep 2023 12:13:03 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Received: from hekla.abc.se (hekla.abc.se [158.174.61.227]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA512) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RccPB6lKxz4JXZ for ; Fri, 1 Sep 2023 12:13:02 +0000 (UTC) (envelope-from andreas.kahari@abc.se) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=default; bh=AUi+3QLng8 vBqmyQGSOmQX4OUGJk7Swf/D0f8N8baRY=; h=in-reply-to:references:subject: cc:to:from:date; d=abc.se; b=BuRIGaVw0jAk6hZYFxnCOevtLgsvQSnGecl261ftt Czrfd3w8Mhg/YqVhM8cbs+8FVzaQeUauyGHC+lgBUG3vB4S0t2DtvWzVLfQIV83yBf16+E fwjbVVaXf88T4zewyBrKTBKNYjN94P86khwZl/TupmCxOwy1y8LFAaSvabeUZbm3d+wYi6 9p1QDYzUC3y612riMXBgcnjXQmdsZRRejYUldrlmakrHA1DtddcuZsQIpQehYWW28QHm47 TvPZeZT6Ay+0O2rEeVC+b3tOM5zhxSNy4EHxVRm3WyYtAdedvbWz73NLwez+vGdyRvxT1U TLQZfsRN6iMjUIkPsLRRw== Received: from harpo.local (94-255-242-14.cust.bredband2.com [94.255.242.14]) by hekla.abc.se (OpenSMTPD) with ESMTPSA id 5b053544 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 1 Sep 2023 14:12:15 +0200 (CEST) Date: Fri, 1 Sep 2023 14:12:13 +0200 From: Andreas Kusalananda =?utf-8?B?S8OkaMOkcmk=?= To: Ede Wolf Cc: User Questions Subject: Re: cut off last lines of a document Message-ID: Mail-Followup-To: Ede Wolf , User Questions References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8473, ipnet:158.174.0.0/16, country:SE] X-Rspamd-Queue-Id: 4RccPB6lKxz4JXZ On Fri, Sep 01, 2023 at 10:43:46AM +0200, Ede Wolf wrote: > Hello, > > From a file/output with an unknown amount of lines, I would like to filter > out, or not display, the last 3 lines. Is there a way to archive this? > > For those also using linux, there is a "head -n -3" for this. That negative > number option is not available on FreeBSD, but maybe there is an alterative > way of doing this? Preferably /bin/sh compatible. > > Thanks > > Ede Using awk: awk -v n=3 'NR > n { print buffer[NR%n] } { buffer[NR%n] = $0 }' This will print all lines except the last "n" lines. The buffer array is a circular buffer that contains the most recently read "n" lines. The code outputs nothing until the first "n" lines have been read, then it outputs lines from the buffer array in a circular fashion while at the same time filling the array with new lines from the input. -- Andreas (Kusalananda) Kähäri SciLifeLab, NBIS, ICM Uppsala University, Sweden . From nobody Fri Sep 1 15:16:59 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RchTh5fcpz4rS2S for ; Fri, 1 Sep 2023 15:17:12 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Received: from mail.worldserver.net (mail.worldserver.net [217.13.200.36]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "*.worldserver.net", Issuer "EuropeanSSL Server CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RchTf5fk8z3CKl for ; Fri, 1 Sep 2023 15:17:10 +0000 (UTC) (envelope-from listac@nebelschwaden.de) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nebelschwaden.de header.s=1687803001 header.b=YJrJhm59; spf=pass (mx1.freebsd.org: domain of listac@nebelschwaden.de designates 217.13.200.36 as permitted sender) smtp.mailfrom=listac@nebelschwaden.de; dmarc=none Received: from postpony.nebelschwaden.de (v22018114346177759.hotsrv.de [194.55.14.20]) (Authenticated sender: sendmail@nebelschwaden.de) by mail.worldserver.net (Postfix) with ESMTPSA id CC5251E13A7 for ; Fri, 1 Sep 2023 17:17:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nebelschwaden.de; s=1687803001; t=1693581421; bh=8cegqdmUk/4kS5XKOq4QI5aq+LcR51tHkXMZgTfl9QQ=; h=Date:Reply-To:Subject:To:References:From:In-Reply-To:From; b=YJrJhm596M0P03XlpMYTkyJMYXc1zCt4m5Z1HZ+uzNs6hs73QXqj5Y1LHg7do6z39 a4mR5jyRhnuZYLKvkEZllSPqVE4pWbgfQWyHkq46kDWN/inOjkdOXI/u2B1PAmREoo qkZ4UoVL/vzlt4PF7lr639ST4283wuvzLgJ+B+HQJx4fkL0X5PiMK8e2E1IlMLkCb3 HUgFH2roMpbXz6XNAGyhqzAZYY51Iofw2YKJM8BD6qU4ViuAvQwMEOFpe2A2NeNyvq jH7hM1Na6s9dWBHRwDGSzGyt37GZFxjy8yYq0y0HMgQZRMh/ITQ0EbDH644HNTNHgu dXjtzsxuISeaw== Received: from [172.16.37.5] (kaperfahrt.nebelschwaden.de [172.16.37.5]) by postpony.nebelschwaden.de (Postfix) with ESMTP id 534591124B0 for ; Fri, 1 Sep 2023 17:16:59 +0200 (CEST) Message-ID: Date: Fri, 1 Sep 2023 17:16:59 +0200 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: listac@nebelschwaden.de Subject: Re: cut off last lines of a document To: User Questions References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Content-Language: en-US From: Ede Wolf In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.59 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; R_SPF_ALLOW(-0.20)[+ip4:217.13.200.0/24]; R_DKIM_ALLOW(-0.20)[nebelschwaden.de:s=1687803001]; RCVD_IN_DNSWL_LOW(-0.10)[217.13.200.36:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_REPLYTO(0.00)[listac@nebelschwaden.de]; DMARC_NA(0.00)[nebelschwaden.de]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15657, ipnet:217.13.192.0/20, country:DE]; TO_DN_ALL(0.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[nebelschwaden.de:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RchTf5fk8z3CKl Thanks all again for your help! I guess that awk below is the one to go for. I would have never been able to come up with those solution(s) Am 01.09.23 um 15:59 schrieb User &: > Le vendredi 01 sept. 2023 à 14:12:13 (+0200), Andreas Kusalananda Kähäri à écrit: >> Using awk: >> >> awk -v n=3 'NR > n { print buffer[NR%n] } { buffer[NR%n] = $0 }' >> >> This will print all lines except the last "n" lines. The buffer array >> is a circular buffer that contains the most recently read "n" lines. >> The code outputs nothing until the first "n" lines have been read, then >> it outputs lines from the buffer array in a circular fashion while at >> the same time filling the array with new lines from the input. > > Oh, that's beautiful. Thanks for sharing. From nobody Fri Sep 1 15:46:58 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rcj8M53NXz4rYvY for ; Fri, 1 Sep 2023 15:47:15 +0000 (UTC) (envelope-from pprocacci@gmail.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rcj8M208kz3Hwk for ; Fri, 1 Sep 2023 15:47:15 +0000 (UTC) (envelope-from pprocacci@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-52c4d3ff424so1559523a12.0 for ; Fri, 01 Sep 2023 08:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693583232; x=1694188032; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=N5XXfG/NZSSRnfFPAok/7dabrE+EVOMcebE7/2RDvMU=; b=NsChOTUdMfrPx+DZ8PDwXytncLUzrjbatpM1DzDtkQNqPwYC8oigKMbeTsUR8RS+ay PARssR9msnudjkU5kZoM2f7IAVVYOcZjTYWbNdrheNgjIAvKIHExdBiaSKdFEyNRMFpQ cytPK97g1fNSrw8Ev3aYgw16dOsX+W/oJiijzav/RqKYdKeOCzz83ODarpjwUXjbNWez yRuu/x5Y4Ej81RxgPc6xUm1yY9Rm3pObpB1M7FfzlVu/PKz7unyuSg1hsubriK70l7b9 +ve68x5njTtmsXLx5eSiIW4E5OR0iwU0s3XjTsKxYkhHICzbWCVxYIdtTcwI0fSxFvNQ ZrPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693583232; x=1694188032; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=N5XXfG/NZSSRnfFPAok/7dabrE+EVOMcebE7/2RDvMU=; b=EaO/0Z+2+7ZyUKwhrRrYrzKTyHiNuavfxo3GppqGwBfVVMona4dwGV8wlxXLbWrxqe ychIQXa7gZU6Ltbcw48kAv7rcRP27HasPofCO+EWSVJEjqy5VCDn8MrdOkWmQtz70qGf V8B6PdCEygmf4m8a2ldFsU2zBriFYKIIjL0my6LlwbDRokRYyDl70FWQ/K4gmXcL/rg8 Ts3730vhZFkWLh3p95aD/cI2Xww1/S/0OQVD3OERBtjQ58/GWFGBU00lhlVJkaYPhZoQ Pmw0HHqX2JOXDo/E1XJ8rCF2L01R7N2RTwvl6QsL+x+gqx06v/5BwpjVBizYJ0SeGDdW 4kYg== X-Gm-Message-State: AOJu0YzzexAsCQqKUoAsRu+LJNXttIWW1jCOX8ZKrAtW/Xcu//T7dwg6 Ydbordi3lN1mbOpQuAyEXFqAH+cUZ1cVHOujPicpiXmuRA== X-Google-Smtp-Source: AGHT+IHs4LXJazX+agizfxHlGVBXRet5zdRBHBZOriVvGGUW3g0v2iqx0h88Q4BcmWu4c+86pcYYCMdXSca36ZNbrBo= X-Received: by 2002:a50:ef1a:0:b0:523:6c47:56f8 with SMTP id m26-20020a50ef1a000000b005236c4756f8mr2720982eds.18.1693583231481; Fri, 01 Sep 2023 08:47:11 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> In-Reply-To: From: Paul Procacci Date: Fri, 1 Sep 2023 11:46:58 -0400 Message-ID: Subject: Re: cut off last lines of a document To: listac@nebelschwaden.de Cc: questions@freebsd.org Content-Type: multipart/alternative; boundary="000000000000e8fc9606044e1294" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4Rcj8M208kz3Hwk --000000000000e8fc9606044e1294 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Sep 1, 2023 at 6:53=E2=80=AFAM Ede Wolf w= rote: > Am 01.09.23 um 10:43 schrieb Ede Wolf: > > Hello, > > > > From a file/output with an unknown amount of lines, I would like to > > filter out, or not display, the last 3 lines. Is there a way to archive > > this? > > > > For those also using linux, there is a "head -n -3" for this. That > > negative number option is not available on FreeBSD, but maybe there is > > an alterative way of doing this? Preferably /bin/sh compatible. > > > > Thanks > > > > Ede > > > > As a sidenote: If possible, I would like to avoid using "tail -r | tail > -n +4 | tail -r" as well, as it again is specific to FreeBSD, so if > there is a more universal solution, that would be preferred. Even though > this of course is a FreeBSD mailing list. > > > With these restrictions, you could use something like: sed -e :a -e '$d;N;2,3ba' -e 'P;D' ~Paul --=20 __________________ :(){ :|:& };: --000000000000e8fc9606044e1294 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Sep 1, 2023 at 6:53=E2=80=AFA= M Ede Wolf <listac@nebelschwa= den.de> wrote:
Am 01.09.23 um 10:43 schrieb Ede Wolf:
> Hello,
>
>=C2=A0 From a file/output with an unknown amount of lines, I would like= to
> filter out, or not display, the last 3 lines. Is there a way to archiv= e
> this?
>
> For those also using linux, there is a "head -n -3" for this= . That
> negative number option is not available on FreeBSD, but maybe there is=
> an alterative way of doing this? Preferably /bin/sh compatible.
>
> Thanks
>
> Ede
>

As a sidenote: If possible, I would like to avoid using "tail -r | tai= l
-n +4 | tail -r" as well, as it again is specific to FreeBSD, so if there is a more universal solution, that would be preferred. Even though this of course is a FreeBSD mailing list.



With these restrictions, you could use something like:

sed -e :a -e = '$d;N;2,3ba' -e 'P;D' <filename>

~Paul
--
_______________= ___

:(){ :|:& };:
--000000000000e8fc9606044e1294-- From nobody Fri Sep 1 22:09:18 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RcsdH53dRz4rpN4 for ; Fri, 1 Sep 2023 22:09:23 +0000 (UTC) (envelope-from dvoich@optonline.net) Received: from altprdrgo01.altice.prod.msg.synchronoss.net (altprdrgo01.altice.prod.msg.synchronoss.net [65.20.63.142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RcsdF59DXz4rjf for ; Fri, 1 Sep 2023 22:09:21 +0000 (UTC) (envelope-from dvoich@optonline.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=optonline.net header.s=dkim-002 header.b=TfLKKety; spf=pass (mx1.freebsd.org: domain of dvoich@optonline.net designates 65.20.63.142 as permitted sender) smtp.mailfrom=dvoich@optonline.net; dmarc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=optonline.net; s=dkim-002; t=1693606161; bh=T9wgEie9ofSgZuBaxD36j29k0+109LiKfNkpNnci9/U=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=TfLKKetypjsTQo4vCIYNUDazIszGm6iDllpkVevMlTs34Cu4IHq2e0GkAlS/cutNmzRJ+H4Im+suX/G46duYmzsw6Vt3tswGIPh4LlcEAHmYyJNFboxipmcigi30DDkRdMN1zEjwNkKzV4M2B91iWOMgw+jG7zvbd4yOIGfa3r7k7Qo89BeiHPF2NNUNKy8ZBOpNjMcIj5pQD34wuW+S58hmjoP5meU+bhGGXuNVZq+sMFmymuGF/nyZwHyGdqgv4UDngqGDnOtiZkgVFyRH4Yh7HXDiX3enCGI7NjmBQ9P808SPtGVP22x8oY1umFEa4KxZ/EslZPLAfGk/J2xIqg== X-RG-VS-CS: clean X-RG-VS-SC: 0 X-RG-VS: Clean X-Originating-IP: [24.185.149.5] X-RG-Env-Sender: dvoich@optimum.net X-RG-Rigid: 64D3D06303EFC231 X-RazorGate-Vade: gggruggvucftvghtrhhoucdtuddrgedviedrudegfedgtdejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutefnvffkvefgfgfupdggtfgfnhhsuhgsshgtrhhisggvpdfqfgfvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpeffhffvuffkofggtgfgsehtqhertdertdejnecuhfhrohhmpegglhgrugcuofgrrhhkohhvuceoughvohhitghhsehophhtohhnlhhinhgvrdhnvghtqeenucggtffrrghtthgvrhhnpeeigfelteevvdehffdtgfeuteelueeffeeikeffgefgkeelfedtfedutdeiudejgfenucfkphepvdegrddukeehrddugeelrdehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohephhgrphhphidrugifrghrfhejrdhnvghtpdhinhgvthepvdegrddukeehrddugeelrdehpdhmrghilhhfrhhomhepughvohhitghhsehophhtohhnlhhinhgvrdhnvghtpdhnsggprhgtphhtthhopedupdhrtghpthhtohepqhhuvghsthhiohhnshesfhhrvggvsghsugdrohhrghdprghuthhhpghushgvrhepughvohhitghhsehophhtihhmuhhmrdhnvghtpdhgvghokffrpegfufdpoffvtefjohhstheprghlthhprhgurhhgohdtud X-RazorGate-Vade-Verdict: clean 0 X-RazorGate-Vade-Classification: clean Received: from happy.dwarf7.net (24.185.149.5) by altprdrgo01.altice.prod.msg.synchronoss.net (5.8.812) (authenticated as dvoich@optonline.net) id 64D3D06303EFC231 for questions@freebsd.org; Fri, 1 Sep 2023 18:09:20 -0400 Date: Fri, 1 Sep 2023 18:09:18 -0400 From: Vlad Markov To: User Questions Subject: portmaster and CR Message-ID: <20230901180918.137baaf3@happy.dwarf7.net> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd13.2) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.09 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-0.997]; NEURAL_HAM_LONG(-0.94)[-0.936]; NEURAL_HAM_MEDIUM(-0.76)[-0.761]; R_DKIM_ALLOW(-0.20)[optonline.net:s=dkim-002]; R_SPF_ALLOW(-0.20)[+ip4:65.20.63.0/24]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; FREEMAIL_FROM(0.00)[optonline.net]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:31898, ipnet:65.20.63.0/24, country:US]; FREEMAIL_ENVFROM(0.00)[optonline.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_XOIP(0.00)[]; TO_DN_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[optonline.net:+]; DMARC_NA(0.00)[optonline.net]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4RcsdF59DXz4rjf I use portmaster to update my ports. Usually there are many ports needing u= pdating. Recently, portmaster requires a carriage return after finishing on= e update before it will resume. I find that annoying. Is there a way to get it to just keep going? I can se= e stopping on an error but not stopping on success. --=20 I dream of a better tomorrow, where chickens can cross the road and not be = questioned about their motives.=E2=80=9D =E2=80=93 Ralph Waldo Emerson From nobody Sat Sep 2 00:54:29 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RcxJ31HCrz4s89w for ; Sat, 2 Sep 2023 00:54:43 +0000 (UTC) (envelope-from trkellers@gmail.com) Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RcxJ20jg2z3NKY for ; Sat, 2 Sep 2023 00:54:42 +0000 (UTC) (envelope-from trkellers@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oa1-x2e.google.com with SMTP id 586e51a60fabf-1c8cb3c9534so278241fac.1 for ; Fri, 01 Sep 2023 17:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693616080; x=1694220880; darn=freebsd.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=pGlfrmWGXKsOuXwH2YoelVGk7i3I0cPYrEAYAdeiA54=; b=KCOB7f+n757NoyFuUeOX3dkNebBAYyofKQ9pSh28aNGNtCbJ96nRjeiwVkGNIVARvz 777BmsthKObwYMmGBjDHzgvJLtIiFMhnFEJZYDymheV9VGNUwit13prYgUtf8z7utogd oauETUvqeTYzgQvOGYlbmIeNDgyQv3cAI2VDsuQOyUDuKk5SM4yztzjOCNtIUDlS8mkp MgENihSEwbMswZhTH4JJMQcFebwt7CAuaiiOeO2o/sdrJIwfpWwqgM/lGcYUKLOiYNlW mB4VO26/MyftHI0X1/ofnJCZqwHdQ+Ugs5qXSqoF+cCkGTFPlNxoH8fx3F3FtJtBwG/E ElGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693616080; x=1694220880; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pGlfrmWGXKsOuXwH2YoelVGk7i3I0cPYrEAYAdeiA54=; b=DtShiVuQqvGo+QiT9377WKsdHKJciMvMoJZAA31EkfKLMnZ+dhbiOV1QRFLXyMJ1Gm PFDNICCjB95cgi+IJHvaI17q0ecWCo0pr7cZkL3h+aEGahxH9v0F+EXdzEbOZVTDGX1c BPz+66oHp5DU0n+rCXh+S3cFd0dxDef8HG4h2tE7JbnfYD8s/6EDqNdtDoIvDGdA/3Rz W6a6YC03ioP8Ey3+6PBgfcGuQwyYbsoGAq2DpCIz3O/MEy+xl0R4q3/pYMhl/jX5012C DZ88Kx3RHbFA/BdJNqZhEhQEqaJlSTW/W6GlOMOMTNlGOiV+nILMnegJFMeM4/O1XeeO vjVA== X-Gm-Message-State: AOJu0Ywf3tWeo8mfGiA9TwlUtPol3Vl87ySxXo7KRBFxsxEZ5d/lzFYY snL9DVcbQ30gEbYBzgstCsjdVK5ln0g= X-Google-Smtp-Source: AGHT+IGnWKXY6AQXuLgqIQgtL6RTkT2rQEScgnBDhBRz8oxtyFHlT8EWf7gBi0tQMuiZKSXgKLlgJQ== X-Received: by 2002:a05:687c:86:b0:1d1:40a6:e832 with SMTP id yg6-20020a05687c008600b001d140a6e832mr918974oab.4.1693616080618; Fri, 01 Sep 2023 17:54:40 -0700 (PDT) Received: from smtpclient.apple ([5.182.32.246]) by smtp.gmail.com with ESMTPSA id y190-20020a81a1c7000000b0058461c9524fsm1364160ywg.12.2023.09.01.17.54.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Sep 2023 17:54:40 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: "TR Kellers, Sr" List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: portmaster and CR Date: Fri, 1 Sep 2023 20:54:29 -0400 Message-Id: References: <20230901180918.137baaf3@happy.dwarf7.net> Cc: User Questions In-Reply-To: <20230901180918.137baaf3@happy.dwarf7.net> To: Vlad Markov X-Mailer: iPhone Mail (20G75) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2001:4860:4864::/48, country:US] X-Rspamd-Queue-Id: 4RcxJ20jg2z3NKY portmaster -aG? > On Sep 1, 2023, at 7:25 PM, Vlad Markov wrote: >=20 > =EF=BB=BF > I use portmaster to update my ports. Usually there are many ports needing u= pdating. Recently, portmaster requires a carriage return after finishing one= update before it will resume. >=20 > I find that annoying. Is there a way to get it to just keep going? I can s= ee stopping on an error but not stopping on success. > --=20 > I dream of a better tomorrow, where chickens can cross the road and not be= questioned about their motives.=E2=80=9D > =E2=80=93 Ralph Waldo Emerson >=20 From nobody Sat Sep 2 03:38:29 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rd0xp5zG7z4rSVh for ; Sat, 2 Sep 2023 03:39:10 +0000 (UTC) (envelope-from lain@fair.moe) Received: from mail.076.ne.jp (mail.076.ne.jp [45.76.218.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rd0xn3l1sz4GCB for ; Sat, 2 Sep 2023 03:39:09 +0000 (UTC) (envelope-from lain@fair.moe) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=076.ne.jp header.s=dkim header.b=UqzmSTFE; spf=none (mx1.freebsd.org: domain of lain@fair.moe has no SPF policy when checking 45.76.218.69) smtp.mailfrom=lain@fair.moe; dmarc=none Received: from mail.076.ne.jp (localhost [127.0.0.1]) by mail.076.ne.jp (Postfix) with ESMTP id 4Rd0xd3G2MzW0nr for ; Sat, 2 Sep 2023 12:39:01 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=076.ne.jp; h= user-agent:in-reply-to:content-disposition:content-type :mime-version:references:message-id:subject:to:from:date; s= dkim; t=1693625940; x=1696217941; bh=7YEoZQYj3YUNUuQUbrilgflS0Fi 4TqjoiMC+2z4ivC8=; b=UqzmSTFEA6+G7y4bHZHpujP4NX4L2D2jGcpJE1/Y4fl s8sdA7SptGrVzzbgvbzZBFlFNYRwHxp2MyDDphNATLEaxUpWiqvGxF+GmMuFEjK8 vWjkpriyx4LgyiQ5eGcsBYZVUTm9mfMjSEwU4PWUJoaCi5C9IQusQerFQ4PRjh+Z x+mCJJ0+J4cOA7JP59PbmzEVlmkbr6gmXRuOl8irHKNebw8WEKT04YWy8zJFS8rU v6SclYleV8duE0DmLeEA3ZCZhbevIfCOWxXrKKqhe/GA0kLboYi2/4AoEQZ1hWBH LOhe2ehfh11u/RuuHWefo7PpSPGFxkCG4BzAMURr3nw== X-Virus-Scanned: Debian amavisd-new at guest.guest Received: from mail.076.ne.jp ([127.0.0.1]) by mail.076.ne.jp (mail.076.ne.jp [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1vJ61gPt_Lyp for ; Sat, 2 Sep 2023 12:39:00 +0900 (JST) Received: from mail.fair.moe (KD106137200105.ppp-bb.dion.ne.jp [106.137.200.105]) by mail.076.ne.jp (Postfix) with ESMTPSA id 4Rd0xc0YGBzW0mP for ; Sat, 2 Sep 2023 12:38:59 +0900 (JST) Date: Sat, 2 Sep 2023 12:38:29 +0900 From: "lain." To: questions@freebsd.org Subject: Re: cut off last lines of a document Message-ID: X-Location: =?utf-8?B?IkVhcnRoL+WcsOeQgyI=?= X-Operating-System: "GNU/Linux" References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3vbevgcxmcpbgnbi" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20230517 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.90 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; MID_RHS_NOT_FQDN(0.50)[]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[076.ne.jp:s=dkim]; MLMMJ_DEST(0.00)[questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[076.ne.jp:+]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DMARC_NA(0.00)[fair.moe]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:20473, ipnet:45.76.192.0/19, country:US]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_NA(0.00)[no SPF record]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4Rd0xn3l1sz4GCB --3vbevgcxmcpbgnbi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2023=E5=B9=B409=E6=9C=8801=E6=97=A5 11:37, the silly Ede Wolf claimed to= have said: > as it again is specific to FreeBSD, so if there is a > more universal solution, that would be preferred. Even though this of cou= rse > is a FreeBSD mailing list. I should point out that FreeBSD coreutils are not GNU coreutils, so there are going to be differences. And there are 1000s of different versions of coreutils available, because they're so easy to re-create, and each one of them work differently. --=20 lain. Did you know that? 90% of all emails sent on a daily basis are being sent in plain text, and i= t's super easy to intercept emails as they flow over the internet? Never send passwords, tokens, personal information, or other volunerable in= formation without proper PGP encryption! If you're writing your emails unencrypted, please consider sending PGP encr= ypted emails for security reasons. You can find my PGP public key at: https://fair.moe/lain.asc Every good email client is able to send encrypted emails. If yours can't, then you should consider switching to a secure email client= , because yours just sucks. My recommendations are Claws Mail or NeoMutt. For instructions on how to encrypt your emails: https://unixsheikh.com/tutorials/gnupg-tutorial.html --3vbevgcxmcpbgnbi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCAAdFiEEozVhUpXECiNYIKIXtWNzC1Y29b0FAmTyrjUACgkQtWNzC1Y2 9b1yQgv/f2DCyjQhKun+csJ36kShzZe5YstIhQU6bs3JLRNgOYye7y6Zk/t2ABA8 iCfnc9qggkvFJsduYgIWxk7NgQlbzT1jk/2k/Wmi2OS1UoBn7DyX8Wcgjt2gEUAt InOb13IX65uwSPBKw1XX3rApbGCx19qZCPsywnCv/IjnVcxIqnsQ/kDBUCDcPGKR hp6vjn+1sYe64JWPpXlHN4u9sbzagzkjpYLUfVX3iMtfuxSZM1+KZV5yQz5xJi7M t5Tv1pexZu3TN5IAwj03eIbLI4wafkxCB57qeRPlZ/O5c1iQFSUqILiSCCQwgYBU Bqqf/Lelo9I0vVLuUp2E9rQGB2vMIsTVnsaS+5woJtqYpZ8qb3PFxDRnMlgRFk9b x/PP1SR0j/tq7MBNVCRn7OxnEPal6VVVJ7K2KDFi+DsMZYcefiKfFO656j6Zi2pc Sr4mCEyXkZiJbR270539ff6f6AQx/gBA2wLauUdaygY8EeOeHM2j+s7str0jseoo Kz5WLmaU =5kPL -----END PGP SIGNATURE----- --3vbevgcxmcpbgnbi-- From nobody Sat Sep 2 05:09:03 2023 X-Original-To: questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rd2xv1xw1z4rkqs for ; Sat, 2 Sep 2023 05:09:23 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Received: from mx1.riseup.net (mx1.riseup.net [198.252.153.129]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx1.riseup.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rd2xt2J80z4SK8 for ; Sat, 2 Sep 2023 05:09:22 +0000 (UTC) (envelope-from ralf-mardorf@riseup.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=riseup.net header.s=squak header.b=BpcZrmFK; spf=pass (mx1.freebsd.org: domain of ralf-mardorf@riseup.net designates 198.252.153.129 as permitted sender) smtp.mailfrom=ralf-mardorf@riseup.net; dmarc=pass (policy=none) header.from=riseup.net Received: from fews01-sea.riseup.net (fews01-sea-pn.riseup.net [10.0.1.109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4Rd2xr0470zDqXB for ; Sat, 2 Sep 2023 05:09:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1693631360; bh=0T6Ka9IXAXMwhowVFVzVyyjI5onBCZn/FZXZofcQIcQ=; h=Subject:From:To:Date:In-Reply-To:References:From; b=BpcZrmFK+FQXTnCH60l1xB0S95quLXO7T9rGkqTsrmndFBxzAOBVumhTIwQ5+xoVB bNGWlk+wu2B5xMBS0YjTjV+lczH9OnfhmvnYJicoBrj2OUlSsicaijBBZJoU1oPPJO gSlZtiCb07F8XB03R8R6y6zAjqjOz9mdBzEzMmZk= X-Riseup-User-ID: 8D64A02490C131F7EF21656A16675C8EEA0A364065965583EC58E20989196B9C Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews01-sea.riseup.net (Postfix) with ESMTPSA id 4Rd2xq2Q33zJn8q for ; Sat, 2 Sep 2023 05:09:19 +0000 (UTC) Message-ID: <4062326d85f9e9988b08ab49df4a59e3148fea76.camel@riseup.net> Subject: Re: cut off last lines of a document From: Ralf Mardorf To: questions@freebsd.org Date: Sat, 02 Sep 2023 07:09:03 +0200 In-Reply-To: References: <57be5495-97f8-4f22-9ae2-cd9712596e64@nebelschwaden.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.79)[-0.792]; DMARC_POLICY_ALLOW(-0.50)[riseup.net,none]; R_DKIM_ALLOW(-0.20)[riseup.net:s=squak]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[198.252.153.129:from]; RWL_MAILSPIKE_GOOD(-0.10)[198.252.153.129:from]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:16652, ipnet:198.252.153.0/24, country:US]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[riseup.net:+]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_NONE(0.00)[riseup.net:dkim]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4Rd2xt2J80z4SK8 Hi, to write a super portable script the best way would be to check what operating system is used and to check the version of the used shell. case in FreeBSD) command=3Dfoo;; *) command=3Dbar;; esac When using busybox there are a few extra pitfalls. Regards, Ralf