Re: while /usr/bin/read

In article <fslmkh$89h$1 [at] online.de>,
Janis Papanagnou <Janis_Papanagnou [at] hotmail.com> wrote:

> pk wrote:
> > Janis Papanagnou wrote:
> >
> >
> >>(Frankly, the above examples don't seem to explain much.)
> >
> >
> > I was replaying to Barry who said that having a corresponding external
> > utility for each built-in command was a POSIX requirement. The above does
> > not suggest that a "read" external utility is always required. In fact, if
> > I read the standard correctly, POSIX never requires that for any builtin.
> > It's true, however, that that does not explain why the OP's implementation
>
> I was aiming at something different; because I can use the read
> builtin in a special way where the side effects are irrelevant
> (man page examples re-inserted)
>
> (read foo)
> nohup read ...
> find . -exec read ... \;
>
> would that be a sensible rationale to have an external program?
> I think not.

I see -- /bin/read can be used as a way to implement "Please hit RETURN
to continue".

--
Barry Margolin, barmar [at] alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***
Barry Margolin [ Sa, 29 März 2008 22:03 ] [ ID #1932342 ]

Re: while /usr/bin/read

Barry Margolin wrote:
> In article <fslmkh$89h$1 [at] online.de>,
> Janis Papanagnou <Janis_Papanagnou [at] hotmail.com> wrote:
>
>
>>pk wrote:
>>
>>>Janis Papanagnou wrote:
>>>
>>>
>>>
>>>>(Frankly, the above examples don't seem to explain much.)
>>>
>>>
>>>I was replaying to Barry who said that having a corresponding external
>>>utility for each built-in command was a POSIX requirement. The above does
>>>not suggest that a "read" external utility is always required. In fact, if
>>>I read the standard correctly, POSIX never requires that for any builtin.
>>>It's true, however, that that does not explain why the OP's implementation
>>
>>I was aiming at something different; because I can use the read
>>builtin in a special way where the side effects are irrelevant
>>(man page examples re-inserted)
>>
>> (read foo)
>> nohup read ...
>> find . -exec read ... \;
>>
>>would that be a sensible rationale to have an external program?
>>I think not.
>
>
> I see -- /bin/read can be used as a way to implement "Please hit RETURN
> to continue".
>

Yes, that's why I said that "I can use the read builtin in a
special way [...]", but that still doesn't make a sensible
rationale for an external program that may just be used in
those few specific applications like "hit RETURN to continue".

Janis
Janis Papanagnou [ Sa, 29 März 2008 22:46 ] [ ID #1932344 ]
Linux » comp.unix.shell » Re: while /usr/bin/read

Vorheriges Thema: Re: script to verify if server is up
Nächstes Thema: Re: Problem with export AWKPATH