-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Name of .jl Script (aka. $0) #14109
Comments
omus
added a commit
to omus/julia
that referenced
this issue
Nov 24, 2015
omus
added a commit
to omus/julia
that referenced
this issue
Dec 3, 2015
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
omus
added a commit
to omus/julia
that referenced
this issue
Dec 3, 2015
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
omus
added a commit
to omus/julia
that referenced
this issue
Dec 3, 2015
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
omus
added a commit
to omus/julia
that referenced
this issue
Dec 4, 2015
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
omus
added a commit
to omus/julia
that referenced
this issue
Dec 16, 2015
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
omus
added a commit
to omus/julia
that referenced
this issue
Dec 16, 2015
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
omus
added a commit
to omus/julia
that referenced
this issue
Jan 27, 2016
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
omus
added a commit
to omus/julia
that referenced
this issue
Jan 27, 2016
Note that PROGRAM_FILE was chosen as the name for this variable as it matches the help for the Julia CLI.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When running Julia programs from the command line
julia program.jl
I would like to be able to determine the name of the file Julia is executing. Note that this is different from@__FILE__
as I may want to find out the script name in an included file.In Bash and Perl the name of the script can be referenced through $0. I think in Julia it could be reference via
FILE_NAME
orSCRIPT_NAME
.The text was updated successfully, but these errors were encountered: