|
| From: | Paul Jarc |
| Subject: | Re: try to open file descriptor for input with 'exec' fails |
| Date: | Fri, 02 Nov 2007 10:57:49 -0400 |
| User-agent: | Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) |
juergen@kaesman.de wrote:
> ./doit: line 29: exec: 3: not found
>
> This is the line where i try to open the file descriptor
> for input:
> exec ${fd}<$inf
Try this:
eval "exec ${fd}< "'"$inf"'
And likewise, when closing the descriptor:
eval "exec ${fd}>&-"
paul
| [Prev in Thread] | Current Thread | [Next in Thread] |