At 2018-05-02T14:15:52-0400, Greg Wooledge wrote:
> On Wed, May 02, 2018 at 02:09:06PM -0400, G. Branden Robinson wrote:
> > Here's why I asked. There's a piece of OpenSSH that seems to believe ^
> > is, or might be, an operator. It's down in the weeds of some
> > shell-detection madness, so I'm not sure if they're on crack or not.
> >
> > https://pastebin.com/df7jYEib
>
> If they're accounting for the possibility that the shell is a Bourne
> shell, then yes, ^ could be a pipe operator. It is completely possible
> (although growing increasingly unlikely over time) that someone could
> ssh into an account on a system where the login shell is a Bourne shell.
Looking at it again, "false | printf" is (probably, without having an
SVR4.2 shell handy to test on) a good test for this functionality.
But the friend who brought this to my attention and I agree that this
whole goose chase could have been avoided if the OpenSSH guys had
written comments and diagnostics that were actually meaningful, instead
of slouchy editorializing.
--
Regards,
Branden