Skip to content

Commit

Permalink
Merge pull request #22784 from JuliaLang/cv/program-file-non-const
Browse files Browse the repository at this point in the history
PROGRAM_FILE no longer a constant
  • Loading branch information
omus committed Jul 17, 2017
2 parents d5a6e3a + 8718adc commit a125b28
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function process_options(opts::JLOptions)

# remove filename from ARGS
arg_is_program = opts.eval == C_NULL && opts.print == C_NULL && !isempty(ARGS)
global const PROGRAM_FILE = arg_is_program ? shift!(ARGS) : ""
global PROGRAM_FILE = arg_is_program ? shift!(ARGS) : ""

while true
# startup worker.
Expand Down
2 changes: 1 addition & 1 deletion base/initdefs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ A string containing the script name passed to Julia from the command line. Note
script name remains unchanged from within included files. Alternatively see
[`@__FILE__`](@ref).
"""
:PROGRAM_FILE
global PROGRAM_FILE = ""

"""
ARGS
Expand Down

0 comments on commit a125b28

Please sign in to comment.