[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-bash] Undocumented caret logical operator?
From: |
G. Branden Robinson |
Subject: |
Re: [Help-bash] Undocumented caret logical operator? |
Date: |
Wed, 2 May 2018 14:29:12 -0400 |
User-agent: |
NeoMutt/20170113 (1.7.2) |
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
signature.asc
Description: PGP signature
Re: [Help-bash] Undocumented caret logical operator?, Greg Wooledge, 2018/05/02