1472 links
  • Animal
  • Home
  • Login
  • RSS Feed
  • ATOM Feed
  • Tag cloud
  • Picture wall
  • Daily
Links per page: 20 50 100
1 results tagged Path x
  • bash - choosing between $0 and BASH_SOURCE - Stack Overflow

    Pour connaître le path d'un script à l'intérieur de ce même script, il faut utiliser :

    PATH=${BASH_SOURCE[0]}

    Au lieu de :

    PATH=$0

    En effet, la première méthode retourne le path du script courant même s'il est sourcé (ie lancé comme ceci : ./script.sh).

    June 18, 2018 at 9:50:28 PM GMT+2 - permalink -
    QRCode
    - https://stackoverflow.com/questions/35006457/choosing-between-0-and-bash-source
    Bash Linux Script Path
Links per page: 20 50 100
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Help/documentation