Menu

#4 env

Stable
open
teletele
None
2019-09-30
2019-09-30
teletele
No

Option invoke is used for run script more safe. ( without user settings )
But It's not working when is in first line in script.

$ ./test2
/usr/bin/env: invalid option -- ' '
Try '/usr/bin/env --help' for more information.
$ cat ./test2
#!/usr/bin/env -i bash


echo $PATH

Discussion

  • teletele

    teletele - 2019-09-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -3,3 +3,11 @@
     /usr/bin/env: invalid option -- ' '
     Try '/usr/bin/env --help' for more information.
     ~~~
    +~~~
    +$ cat ./test2
    +#!/usr/bin/env -i bash
    +
    +
    +echo $PATH
    +~~~
    +
    
     
  • teletele

    teletele - 2019-09-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,3 +1,5 @@
    +Option invoke is used for run more safe.
    +But It's not working.
     ~~~
     $ ./test2
     /usr/bin/env: invalid option -- ' '
    
     
  • teletele

    teletele - 2019-09-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,4 @@
    -Option invoke is used for run more safe.
    +Option invoke is used for run script more safe. ( without user settings )
     But It's not working.
     ~~~
     $ ./test2
    
     
  • teletele

    teletele - 2019-09-30
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,5 +1,5 @@
     Option invoke is used for run script more safe. ( without user settings )
    -But It's not working.
    +But It's not working when is in first line in script.
     ~~~
     $ ./test2
     /usr/bin/env: invalid option -- ' '
    
     

Log in to post a comment.