delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/09/18/23:32:16

X-Spam-Check-By: sourceware.org
Message-ID: <450F649C.3090504@cygwin.com>
Date: Mon, 18 Sep 2006 23:31:40 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.5) Gecko/20060727 Fedora/1.5.0.5-1.fc4.remi Thunderbird/1.5.0.5 Mnenhy/0.7.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Read not honouring "-r"?
References: <D3DA8E9DB543364DB6DE9B5964BA8EEA4F2920 AT auntm231 DOT apac DOT corp DOT eds DOT com>
In-Reply-To: <D3DA8E9DB543364DB6DE9B5964BA8EEA4F2920@auntm231.apac.corp.eds.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Irwin, Doug wrote:
> All,
> 
> I am working on a script which monitors mounts for free space.
> 
> It does this by reading from a config file (surprise) consisting of
> mount, threshold, threshold.
> 
> One would expect a "read -r fs t2 t3" to process this without attempting
> to expand slashes.  But I can't seem to get this bit working... And I
> can't seem to find any doco on doing that in Cygwin.
> 
> I've attached the files I am testing with in the hope that someone can
> help me work this out.
> 
> No doubt I have missed something rather obvious.
> 
> Any assistance greatly appreciated!

You really only need to send the request once.

I guess you're going to need to be more specific about the problem you're
seeing.  I got:

# sh test.sh
/
200
200
/c
200
200
/d
200
200
/usr/bin
200
200
/usr/lib
200
200

FWIW, I got the same results on Cygwin and Linux.  Perhaps it makes sense to
review the problem reporting guidelines before posting any follow-up:

<http://cygwin.com/problems.html>

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019