Giter Site home page Giter Site logo

Prompt forwarding $PATH issue about gbt HOT 10 CLOSED

jtyr avatar jtyr commented on July 16, 2024
Prompt forwarding $PATH issue

from gbt.

Comments (10)

Alucardfh avatar Alucardfh commented on July 16, 2024 1

Perfect !
That did the trick.

   louis@thinktank  ~  ⎈ minidev  $ gbt_ssh root@lcentos74
Password:
   16:11:19  root@lcentos74  ~  # 

Do you think you'll roll these changes in the packagecloud package soonish ?

from gbt.

jtyr avatar jtyr commented on July 16, 2024

Thanks for reporting this issue, @Alucardfh. I have done some modifications regarding this behaviour when I was connecting from Mac to Linux. Please update your repo and try it again? If it still doesn't work, please could you share what's the remote shell (Bash, ZSH, is GBT installed remotely)?

from gbt.

Alucardfh avatar Alucardfh commented on July 16, 2024

Hi, unfortunately updating didn't fix it :

✘    louis@thinktank  gbt   master ✔  ⎈ minidev  $ git rev-parse HEAD
bfe5ec56e7baa2eaa76cf3d61920857e35a6b10e

   louis@thinktank  gbt   master ✔  ⎈ minidev  $ gbt_ssh root@lcentos74
ERROR: 'which' not found

The remote shell is Bash 4.2.46(2)-release
GBT is not installed on the remote machine.

from gbt.

jtyr avatar jtyr commented on July 16, 2024

Did your source again the $GBT__HOME/sources/gbts/cmd/local.sh before you tried it?

from gbt.

Alucardfh avatar Alucardfh commented on July 16, 2024

Yep.

   louis@thinktank  ~  ⎈ minidev  $ source $GBT__HOME/sources/gbts/cmd/local.sh
   louis@thinktank  ~  ⎈ minidev  $ gbt_ssh root@lcentos74
ERROR: 'which' not found

from gbt.

jtyr avatar jtyr commented on July 16, 2024

OK. Please could you run which --skip-alias which on the remote and the local system?

from gbt.

Alucardfh avatar Alucardfh commented on July 16, 2024

The Debian version of which doesn't support --skip-alias.
(The local system is Ubuntu 16.04)

   louis@thinktank  ~  ⎈ minidev  $ which --skip-alias which
Illegal option --
Usage: /usr/bin/which [-a] args
  louis@thinktank  ~  ⎈ minidev  $ which which
/usr/bin/which
   louis@thinktank  ~  ⎈ minidev  $ ls -l /usr/bin/which
lrwxrwxrwx 1 root root 10 Jun 30  2017 /usr/bin/which -> /bin/which

The remote system version (Centos 7.4) does support --skip-alias although:

[root@lcentos74 ~]# which --skip-alias which
/usr/bin/which
[root@lcentos74 ~]# ls -l /usr/bin/which
-rwxr-xr-x. 1 root root 24336 Jun 10  2014 /usr/bin/which

from gbt.

jtyr avatar jtyr commented on July 16, 2024

Thanks for the details. Please pull the master branch and try it again.

from gbt.

jtyr avatar jtyr commented on July 16, 2024

We will hopefully cut a new release soon. As soon as @mrdrup finishes his review ;o)

from gbt.

jtyr avatar jtyr commented on July 16, 2024

@Alucardfh if you happy with GBT, please consider to Star the project here on GitHub.

from gbt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.