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