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

Name of .jl Script (aka. $0) #14109

Closed
omus opened this issue Nov 23, 2015 · 0 comments
Closed

Name of .jl Script (aka. $0) #14109

omus opened this issue Nov 23, 2015 · 0 comments

Comments

@omus
Copy link
Member

omus commented Nov 23, 2015

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 or SCRIPT_NAME.

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant