Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Opening a file for READing within script? (Last question today ;) )
- X-seq: zsh-users 13582
- From: Phil Pennock <zsh-workers+phil.pennock@xxxxxxxxxxxx>
- To: Webb Sprague <webb.sprague@xxxxxxxxx>
- Subject: Re: Opening a file for READing within script? (Last question today ;) )
- Date: Wed, 10 Dec 2008 14:31:49 -0800
- Cc: zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=d200807; d=spodhuis.org; h=Received:Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; b=LB1nDC0JdKehNdchmS37CBF8C/I2mMK//x8OgqVuScSCdePvALuqinkRwOKbQ7E41iL5SlNrZnG4AFcSmDsHlycGTBXQh7ut4iTd24yLjVwiw8tqmRzhrCV+/mt/7Esf/G61WokXpBivIWGqXA5mE6Opl+GLxGFA3ugZOnOC2bU=;
- In-reply-to: <b11ea23c0812100934t1b629671y6b284bfb359e5e52@xxxxxxxxxxxxxx>
- Mail-followup-to: Webb Sprague <webb.sprague@xxxxxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <b11ea23c0812100934t1b629671y6b284bfb359e5e52@xxxxxxxxxxxxxx>
On 2008-12-10 at 09:34 -0800, Webb Sprague wrote:
> I want to open a file given at the command line for reading by
> associating it with a file descriptor number and then running
>
> read -u 4 HEADERLINE
exec 4< "$filename"
# do stuff, then close with:
exec 4<&-
(This is not special to zsh)
-Phil
Messages sorted by:
Reverse Date,
Date,
Thread,
Author