Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run from command line (chaining a second -e)? #14

Open
Moelf opened this issue Jan 3, 2021 · 1 comment
Open

How to run from command line (chaining a second -e)? #14

Moelf opened this issue Jan 3, 2021 · 1 comment

Comments

@Moelf
Copy link
Contributor

Moelf commented Jan 3, 2021

Say I originally does julia -e "println(3)", since obviously I can't do:

julia --startup-file=no -e 'using DaemonMode; runargs()' -e "println(3)"

what's the correct syntax?

@dmolina
Copy link
Owner

dmolina commented Jan 6, 2021

Well, actually the way to work with expression should be

julia -e 'using DaemonMode; runexpr("println(3)")'

But the idea of working you are proposing is nice, I actually did not know that you can use "-e" several times in Julia. I am going to add a method to allow that syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants