https://github.com/JuliaLang/julia
Raw File
Tip revision: 0ff703b40afddf9b705bd6a06d3a59cb4c089ea5 authored by Tony Kelman on 08 October 2015, 06:20:46 UTC
Tag v0.4.0
Tip revision: 0ff703b
filterArgs.sh
#!/bin/sh
# This file is a part of Julia. License is MIT: http://julialang.org/license

# Loop over all command line arguments
for i in "$@"; do
    # If an argument starts with -L, echo it out sans -L!
    if [[ $i == -L* ]]; then
        echo "\"${i:2:${#i}}\""
    fi
done
back to top