From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92671 invoked by alias); 19 Jul 2019 02:49:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 92664 invoked by uid 89); 19 Jul 2019 02:49:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Canada, canada, 3.0.7, H*RU:sk:smtp-ou X-HELO: smtp-out-no.shaw.ca Received: from smtp-out-no.shaw.ca (HELO smtp-out-no.shaw.ca) (64.59.134.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 Jul 2019 02:49:46 +0000 Received: from [192.168.1.114] ([24.64.172.44]) by shaw.ca with ESMTP id oIxrhSUj8UIS2oIxshyZ9T; Thu, 18 Jul 2019 20:49:45 -0600 From: Brian Inglis Subject: Re: Wild card to address drives Reply-To: Brian.Inglis@SystematicSw.ab.ca To: "cygwin@cygwin.com" References: <9D9AC45310887B40A7245734E850FBE179089E44@FS-MX02.frontier.local> Openpgp: preference=signencrypt Message-ID: <06ce51ef-2c5b-1f5e-6f86-62837010428b@SystematicSw.ab.ca> Date: Fri, 19 Jul 2019 02:49:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <9D9AC45310887B40A7245734E850FBE179089E44@FS-MX02.frontier.local> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2019-07/txt/msg00143.txt.bz2 On 2019-07-18 02:03, Fergus Daly wrote: > I have > none / cygdrive binary 0 0 > as the only line in the file /etc/fstab to allow for example > $ ls /h/config.sys > instead of the long-hand > $ ls /cygdrive/h/config.sys > In Linux I can type something like > ls /?/ -Ax > as a wild card to address ALL drives, but this does not work in Cygwin. > Is there a wild card syntax that would? Should work - I tried that mapping for a while, but found it interfered with asking Windows utilities for help e.g. cmd /? had to be cmd /\?: $ ls -d /?/\$RECYCLE.BIN '/c/$RECYCLE.BIN' '/d/$RECYCLE.BIN' '/g/$RECYCLE.BIN' $ ls -d /proc/cygdrive/?/\$RECYCLE.BIN '/proc/cygdrive/c/$RECYCLE.BIN' '/proc/cygdrive/d/$RECYCLE.BIN' '/proc/cygdrive/g/$RECYCLE.BIN' $ cmd /c ver Microsoft Windows [Version 10.0.17763.615] $ uname -srvmo CYGWIN_NT-10.0 3.0.7(0.338/5/3) 2019-04-30 18:08 x86_64 Cygwin What does mtab show: $ head /etc/mtab C:/cygwin64/bin /usr/bin ntfs binary,auto 1 1 C:/cygwin64/lib /usr/lib ntfs binary,auto 1 1 C:/cygwin64 / ntfs binary,auto 1 1 C: /c ntfs binary,posix=0,user,noumount,auto 1 1 D: /d ntfs binary,posix=0,user,noumount,auto 1 1 G: /g ntfs binary,posix=0,user,noumount,auto 1 1 -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple