Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/bin/julialauncher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,13 @@ fn is_interactive() -> bool {
for arg in julia_args {
match arg.as_str() {
// Expression evaluation is non-interactive
"-e" | "--eval" => return false,
"-e" | "--eval" | "-E" | "--print" => return false,
// Reading from stdin pipe is non-interactive
"-" => return false,
// Print options are typically non-interactive
"-p" | "--print" => return false,
// License/version display is non-interactive
"-L" | "--license" => return false,
// Version display is non-interactive
"-v" | "--version" => return false,
// Help is non-interactive
"-h" | "--help" => return false,
"-h" | "--help" | "--help-hidden" => return false,
// Check if this looks like a Julia file (ends with .jl)
filename if filename.ends_with(".jl") && !filename.starts_with('-') => {
return false;
Expand Down
13 changes: 13 additions & 0 deletions tests/command_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,19 @@ fn command_update_outdated_channel() {
.and(contains("You currently have").not()),
);

env.julia()
.arg("+1.10")
.arg("-E")
.arg("1+1")
.assert()
.success()
.stderr(
contains("latest version")
.not()
.and(contains("juliaup update").not())
.and(contains("You currently have").not()),
);

env.juliaup().arg("update").arg("1.10").assert().success();

let updated_config_content =
Expand Down
Loading