bash read a if

kocek.kvetoslav na vestizol.cz kocek.kvetoslav na vestizol.cz
Čtvrtek Březen 24 11:24:18 CET 2005


> 
> 	Selze pokud vlozim "-f". Ale jinak ano, je cistsi pouzit
> "read promenna" nez proste "read" a pak nekde ocekavat, ze magicky
> vznikne promenna "$REPLY".


              If no names are supplied, the line read is assigned
              to the variable REPLY.  The return  code  is  zero,
              unless  end-of-file is encountered, read times out,
              or an invalid file descriptor is  supplied  as  the
              argument to -u.

 Manual page bash(1) line 4510

Proc myslite, ze bych nemel ocekavat, ze vznikne?
Je to promenna bashe.

Jinak jsem snad vse pochopil :-)
Dik.
-- 
 Kosac

> -- 
> | Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | 
> yenya.net - private}> |
> | GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 
> 8B35FCDE05B18A5E |
> | http://www.fi.muni.cz/~kas/   Czech Linux Homepage: 
http://www.linux.cz/ |
> Whatever the Java applications and desktop dances may lead to, Unix
will <
> still be pushing the packets around for a quite a while.      --Rob
Pike <


Další informace o konferenci Linux