From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) by sourceware.org (Postfix) with ESMTPS id A19D138582BC for ; Mon, 3 Apr 2023 15:29:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A19D138582BC Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id jJNDptvyVjvm1jM7vpfB3x; Mon, 03 Apr 2023 15:29:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1680535787; bh=quFeJ+M3D9Yofego+zgI7L5LohjvPx9ALQbDgkG7hIA=; h=Date:From:Subject:Reply-To:To:References:In-Reply-To; b=P8UtVWNZ1N3+UDDZQA4Kes004bjIY6GTYS/p0uyF3Xs2OtaWii5/EIiunDXlZYuwu dGqj2svJp4D3M4G0TGpIne7tbsKmTKNyVUMDr4LshpgSVpnFu2gITORte/m+GCPZhg Jv7YDyDRrwfPgaQ1ZzjzNgjkBYittTVOyCSpkzH8pzMhRsg+xP16IWR1C8PoKVwyUr 7Td2zCPtnSxK2orK5acUPNM9MpwiSe7egcqNdInAASHTF77xu4nZr6Wx5HIVF1Edzj CAL1GQuM8Ly5mMoIw4k15AzqAnr9S6jMYyvLDJIdRsHw4uI2K5OxsTsicwJ6musjRF fyi6DUdqHXDtQ== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id jM7upShza3fOSjM7upIdH7; Mon, 03 Apr 2023 15:29:47 +0000 X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=642af0eb a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=8pif782wAAAA:8 a=w_pzkKWiAAAA:8 a=zNyydqMp6s6yAvf0jBMA:9 a=QEXdDO2ut3YA:10 a=sRI3_1zDfAgwuvI8zelB:22 Message-ID: <042bac58-c4c4-56c5-e2be-5b571d229f4a@Shaw.ca> Date: Mon, 3 Apr 2023 09:29:46 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 From: Brian Inglis Subject: Re: 'tac' trying to use "/tmp"; Error: not found Reply-To: cygwin@cygwin.com To: cygwin@cygwin.com References: Content-Language: en-CA Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfMzeoPaXgpOAJsPvrgTggOX62TtJtgiTsXUTlzE3xLiFKpJ5kbQMs4vyEdYrha6/zB13vCGdq7a+1JYG39fhkKRs5PTS1weXQw1qN86NzkLEqCI+CGzh nZ7VbV/prK3bNDb4XKL3bjhnQnP+MO/qb/dD00SW4vEpe8W30bn3epQXtT0u/B2K5+PItxAzPMuyLA== X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-04-02 21:22, marco atzeri wrote: > On Sun, Apr 2, 2023 at 9:43 PM Prof. Luis G. Uribe C. wrote: >> *| 'tac' utility dies with a not found "/tmp" error. |* It is preferable to copy the exact command(s) and output into your problem report. Presumably the input is a pipe or non-seekable device which needs buffered in a temp file. >> I didn't see this problem in older 'tac' versions... >> I created "/tmp" under my root directory: >> * "c:\tmp"* (Windows 10), *to no avail*. >> I make a *tmp* dir directly *above*, in the *parent's 'tac' dir*: >> *"../tmp"*, at the same level as other usual folders like: >> *bin*, *dev*, *etc*, *lib*, *sbin*..., >> and now: *'**tac' works fine**!* The /tmp directory needs to be created in the Cygwin POSIX root directory "/". [I am surprised GNU tac does not yet use mmap where available, as an alternative to seek, as mmap has been around for decades, since 4.4BSD, SysVr4, and Solaris 2.0 days, and should be faster on huge files.] > The expectation for the existence of /tmp directory is well founded > https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard > I assume by accident your installation pruned the directory. > I will not be surprised if other programs also complain, not only tac You can point to another dir under a shell (or export the env var) using e.g. $ export TMPDIR=${TMP:-${TEMP:-/tmp}} or $ TMPDIR=. tac ... If you have Cygwin bash and coreutils installed, under bash or a similar shell with brace expansion you can restore the install directories with: $ /bin/mkdir -pv -m 0755 /{bin,dev,etc,lib} \ /usr/{bin,lib,local/{bin,etc,lib},src} $ /bin/mkdir -pv -m 01777 /dev/{mqueue,shm} /etc/fstab.d \ /{home,{,usr/}tmp} /var/{log,run,tmp} $ /bin/mkdir -pv -m 0666 /var/run/utmp see: https://cygwin.com/git/?p=cygwin-apps/setup.git;a=blob;f=install.cc#l156 If the directories do not have the correct permissions, use chmod to fix them. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry