delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-Id: | <5.1.0.14.2.20020108192517.02503bb0@pop3.cris.com> |
X-Sender: | rrschulz AT pop3 DOT cris DOT com |
X-Mailer: | QUALCOMM Windows Eudora Version 5.1 |
Date: | Tue, 08 Jan 2002 19:34:37 -0800 |
To: | "hongxun lee" <lee DOT 1801 AT osu DOT edu>, |
"cygwin mailing list" <cygwin AT cygwin DOT com> | |
From: | Randall R Schulz <rrschulz AT cris DOT com> |
Subject: | Re: what does it mean in csh |
In-Reply-To: | <003701c198b9$5bff1520$928e1941@alleluja> |
Mime-Version: | 1.0 |
Hongxun, To a first approximation, at least, it's this: read x CSH's $< is a request to read a line from the current standard input (subject to whatever redirection may be in effect, of course). In conjunction with a "set" command, the value read becomes the value of the named variable. In BASH you can read multiple variables in one call. The input is parsed respecting $IFS and if there are more parsed words in the input line than there are variables named in the "read" command, then all the left over words are assigned (with spaces reinserted between the parsed words) to the last variable named in the read command. Use BASH's built-in "help" command ("help read") for the gory details and options. Randall Schulz Mountain View, CA USA At 18:57 2002-01-08, hongxun lee wrote: >The line below is included in a csh script (to install Ada compiler), but >i only have bash (Cygwin) on my PC. What is its equivalent in bash? Thanks > >set x = $< -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |