DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53P86D7D3231177 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53P86D7D3231177 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=mw/IEJtb X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 257E5385840C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1745568371; bh=rZvVUt5J+Qienx6fLi8IteCqa7sq2sYnD4I7kBQ0hA4=; h=Date:To:Subject:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=mw/IEJtbX/Gx8VmKrILRuliapzG9avbWzbA63i8UovlSmRX0ArdxTfN0t19fnPUuK jHtpSktLyxc0+paFWK0rtOOwyFLQpew0JLrZBP9dLixjQTqyqbZEmZkT2GRwV8pSLq Ppb600UIsISWxUQoxsnEifLgErAt7D5wOt9sf3Mg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 28BAC3858D21 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 28BAC3858D21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745568304; cv=none; b=OYo+p/wyOZNkL3p8zCJcfszEBb7tdj8s5IFDVf3muB5urBhKJ6FB+BkZfKA5gibW4Bn2dnw1yYbnzazMPgE8B0WCYur/HzjzEaiUrNQEleopEKIwow0C9HkO1O+2GjRngqYyqTyqhj5TO56qZV9/fJOmwGSDSrMkyOPG+W0W0GE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745568304; c=relaxed/simple; bh=+VUx1gRzBvKKYMLVbC7Y5oHryQqIHP3xUNPx2Tc1EHI=; h=DKIM-Signature:Date:From:Message-ID:To:Subject:MIME-Version; b=bEQ0fvnMwL407Wp7ZsqYddgMSjI1TpmbWz4/D+j4ijD25YtOs8AMx4yQ8LbjPOk7o3PWS0miTAxxBKhwnD6lRGFNrKbKM+ApOEeN3SdQJGAe4CHTKpLoOs+EHRVEwhYsr7MU7mw31L8lUqcE7ckBFPKESA9unHHcVaQmDgJTzvk= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28BAC3858D21 X-Yandex-Fwd: 1 Date: Fri, 25 Apr 2025 10:59:26 +0300 X-Mailer: The Bat! (v9.3.4) Professional Message-ID: <502728380.20250425105926@yandex.ru> To: Fergus Daly , cygwin AT cygwin DOT com Subject: Re: Overwriting /etc/fstab to simplify drivenames In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Repin via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Andrey Repin Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, Fergus Daly! > For years I have overwritten the content of the default /etc/fstab with the one-liner > none / cygdrive binary 0 0 > thus allowing drivenames of the style /d/ instead of /cygdrive/d/ > which syntax is (2nd) shorter but mainly (1st) easily mimics Linux syntax making scripts > mutually transferable. > However using the syntax /?/ to address all drives as in (say) > $ rm -vrf /?/today/tmp > or all similar, fails. Is there a way to render /?/ intelligible to Cygwin > (maybe by rewriting /etc/fstab, again)? rm -rf /proc/cygdrive/?/today/tmp But I advise against such wildcards, as these drives could be inaccessible, locking you out of console for hours. Also, cygwin ignores device type field when mounting paths. Effectively, you could use "bind", which is closer to what actually happens. >> # /etc/fstab >> # >> # This file is read once by the first process in a Cygwin process tree. >> # To pick up changes, restart all Cygwin processes. For a description >> # see https://cygwin.com/cygwin-ug-net/using.html#mount-table >> >> # This is default anyway: >> #none /cygdrive cygdrive binary,posix=0,user 0 0 >> none /mnt cygdrive noacl,binary,nouser,posix=0 0 0 >> W:/ /run bind acl,binary,nouser,posix=0 0 0 >> none /tmp usertemp binary,user,posix=0 0 0 Also, I would strongly advise against what you are doing (Re: your other reply). Specifying "C:" instead of "C:\" (or, well, "C:/", which is synonymous) introduces ambiguity. Drive specification without a path points to "current path" on a specified drive. Which is not necessarily a root path. -- With best regards, Andrey Repin Friday, April 25, 2025 10:52:48 Sorry for my terrible english... -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple