Coder Social home page Coder Social logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Good to know. Not being able to specify what shell su runs may potentially cause
issues, as there's no way of knowing whether the user's shell will work 
correctly
etc. Here's the command that's currently run for me:

cd ~ && /usr/lib/neatx/nxserver --proto=3030000 -- diamond

Original comment by kormat on 22 Jul 2009 at 4:52

from neatx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
The "~" might need a later shell, perhaps using $HOME or missing it out 
altogether as
it's the default anyway would be more portable.

Original comment by [email protected] on 22 Jul 2009 at 5:00

from neatx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
It's not the default though - that's why we had to add it in.

Original comment by kormat on 22 Jul 2009 at 5:19

from neatx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
At least not everywhere, i mean. Ubuntu:

root@asher:~(1:0)# su diamond -c pwd
/root

Fedora:

[root@fedora10 etc]# su diamond -c pwd
/etc

Original comment by kormat on 22 Jul 2009 at 5:21

from neatx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
No, I mean the shell's cd defaults to changing the current working directory to 
the
user's home directory if no directory is specified.  IOW, "cd &&
/usr/lib/neatx/nxserver --proto=3030000 -- diamond" would be OK and more 
portable.

Original comment by [email protected] on 22 Jul 2009 at 6:02

from neatx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Ahh, right. Ok, after consulting the man pages for su on bsd and linux, i think 
this
can work portably. Sending out a patch for review.

Original comment by kormat on 22 Jul 2009 at 6:42

from neatx.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 19, 2024
Patch committed. Thanks for pointing this out & suggesting a fix.

Original comment by kormat on 23 Jul 2009 at 8:58

  • Changed state: Fixed

from neatx.

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.