Git Product home page Git Product logo

Comments (4)

bryphe avatar bryphe commented on June 18, 2024

The output that breaks us is stuff like:

Copying skeleton files.
These files are for the users to personalise their cygwin experience.
They will never be overwritten nor automatically updated.
'./.bashrc' -> '/home/appveyor//.bashrc'
'./.bash_profile' -> '/home/appveyor//.bash_profile'
'./.inputrc' -> '/home/appveyor//.inputrc'
'./.profile' -> '/home/appveyor//.profile'

from esy-bash.

ManasJayanth avatar ManasJayanth commented on June 18, 2024

Unfortunately, I couldn't repro this locally on my machine. Still looking into it.

from esy-bash.

bryphe avatar bryphe commented on June 18, 2024

Thanks for testing it out @prometheansacrifice !

I think the issue is that, if you don't have a .bashrc/.bash_profile etc already, the first run of bash will create - this breaks the output we expect! So it might not repro locally if you already have those in your home directory.

I think there are a couple things we need to do here:

  • Explicitly set the home directory - we can set this in the /etc/nsswitch.conf. We can set the home directory by using db_home. We could set it like: db_home: /usr/esy. We could include this modified /etc/nsswitch.conf in our bundle.
  • Seed the home directory with the requisite scripts - we could just run bash.exe prior to packing to get the .bashrc/.bash_profile/etc generated

Explicitly setting the db_home here will help get the esy/cygwin isolated from another environment the user may have.

This solution would also address #15

from esy-bash.

bryphe avatar bryphe commented on June 18, 2024

Fixed by #35 - thank you @prometheansacrifice ! 💯

from esy-bash.

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.