On 2022/08/10 19:37, Scott Cheloha wrote:
> On Thu, Aug 11, 2022 at 02:22:08AM +0200, Jeremie Courreges-Anglas wrote:
> > On Wed, Aug 10 2022, Scott Cheloha <scottchel...@gmail.com> wrote:
> > > [...]
> > >
> > > 1. Our ksh(1) already checks for stdout errors in the echo builtin.
> > 
> > So do any of the scripts in our source tree use /bin/echo for whatever
> > reason?  If so, could one of these scripts be broken if /bin/echo
> > started to report an error?  Shouldn't those scripts be reviewed?
> 
> I didn't look.
> 
> There are... hundreds files that look like shell scripts in src.
> 
> $ cd /usr/src
> $ find . -exec egrep -l '\#.*\!.*sh' > ~/src-shell-script-paths
> $ wc -l ~/src-shell-script-paths
>     1118 /home/ssc/src-shell-script-paths
> 
> A lot of them are in regress/.
> 
> I guess I better start looking.

The list is much smaller if you just search the tree for /bin/echo

Reply via email to