Coder Social home page Coder Social logo

Comments (4)

KristofferC avatar KristofferC commented on September 23, 2024 2

The shell> mode in the REPL doesn't actually spawn a shell, and instead evokes programs directly IIRC

I think the shell mode does spawn a shell. Perhaps you are thinking about run?

Anyway, a small tweak to

julia/base/client.jl

Lines 63 to 68 in 6023ad6

if shell_name == "fish"
shell_escape_cmd = "begin; $(shell_escape_posixly(cmd)); and true; end"
else
shell_escape_cmd = "($(shell_escape_posixly(cmd))) && true"
end
cmd = `$shell -c $shell_escape_cmd`

could probably fix this.

from julia.

jakobjpeters avatar jakobjpeters commented on September 23, 2024

I also would like to use nushell. This Discourse post says that shell mode only supports POSIX shells and that one can set the JULIA_SHELL environment variable as a workaround.

from julia.

Seelengrab avatar Seelengrab commented on September 23, 2024

The shell> mode in the REPL doesn't actually spawn a shell, and instead evokes programs directly IIRC. How does this end up calling into nushell in the first place?

from julia.

MilesCranmer avatar MilesCranmer commented on September 23, 2024

Iā€™m not sure how it gets called. Maybe if JULIA_SHELL is unset it simply takes SHELL?

But where does the && come from? All that needs to be changed is that. Is that from run?

At the bottom of #23597 @xgdgsc and @stevengj were also discussing Nushell as a potential solution to having a shell mode on windows.

from julia.

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.