Skip to content

Shebang pass options in scripts #9

Closed
@Lightup1

Description

@Lightup1

In linux system if you want to pass options to julia, for example passing --project=. by #!/usr/bin/env julia --project=., you may fail.
It seems better to change it into this one.

#!/bin/bash
#=
exec julia --color=yes --startup-file=no "${BASH_SOURCE[0]}" "$@"
=#

@show ARGS  # put any Julia code here

which is introduced in julia documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions