Subject: Re: more user-friendly error message for /bin/sh?
To: None <>
From: Roland Illig <>
List: tech-userlevel
Date: 01/17/2007 23:17:10
Joerg Sonnenberger wrote:
> 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 :-)

Are they seekable at all? If yes, wouldn't it be handled by the kernel? 
Remember: I'm just seeking four bytes forth and back.