Subject: Re: more user-friendly error message for /bin/sh?
To: None <tech-userlevel@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-userlevel
Date: 01/17/2007 14:36:22
On Wed, Jan 17, 2007 at 04:22:25AM +0100, Roland Illig wrote:
> $ cat ./sh | ./sh -
> sh: Syntax error: "(" unexpected
>
> Since stdin is a pipe here, it is not seekable. Not even to (0,SEEK_SET)
> when the file pointer is already there. Therefore the old, confusing
> error message is printed.
One thing we discussed was shar archives on tapes. You don't want to
seek on those :-)
Joerg