blinksh / blink

Blink Mobile Shell for iOS (Mosh based)
https://blink.sh
GNU General Public License v3.0
6.08k stars 565 forks source link

Mosh appears to drop extra environment variables #1975

Open rrgeorge opened 4 months ago

rrgeorge commented 4 months ago

Checklist

Configuration

Blink 17.2.1.865 iOS 17.2.1

Describe the bug

Sending a custom environment variable (via SendEnv) (such as LC_DEVICE) is lost when connecting over mosh. The variable is successfully set over SSH. Steps to reproduce:

  1. Set SendEnv in .ssh/config (or host SSH config):
    SendEnv LC_DEVICE
  2. Set env in host .blink/profile:
    LC_DEVICE=test
  3. Confirm its set:
    blink> echo $LC_DEVICE
    test
  4. Confirm its set over ssh:
    blink> ssh host
    $ echo $LC_DEVICE
    test
  5. Try over mosh:
    blink> mosh host
    $ echo $LC_DEVICE

    no output

Expected behavior

For SendEnv variables to behave the same over mosh as they do on ssh