Could someone give me a brief explanation or links to an explanation of this topic? Info on the origination would be dandy. The only information that I could find is related to s6-overlay, which I have not yet used. Is this the origination of this?
of the use of this Shebang:
#!/usr/bin/with-contenv bash
vs. this Shebang:
#!/usr/bin/env bash
The second is what I use most of the time with bash.
The is a bash she-bang (shebang) question about a type of shebang.
#!/usr/bin/with-contenv bash
# your shellscript follows
#!/usr/bin/env bash
# this is my normal way of encoding the she-bang.
# Where to appropriately use?
I should note, that I did read "... just make use of with-contenv helper" and I was wondering if that is the first usage, or if it comes from another source like docker, w3c, or somewhere else.
/usr/bin/with-contenv
came from. If it says that it came from s6, then you know that the s6 documentation is authoritative.s6-overlay
version ofwith-contenv
or some completely unrelated program your friendly neighborhood sysadmin wrote and happened to give the same name.with-contenv
? If so, then yes, it's the s6 version./usr/bin/env bash
, then the OS invokes/usr/bin/env
, and tells it to find a version of bash to run. If you use#!/usr/bin/with-contenv bash
, then the OS invokes/usr/bin/with-contenv
, which presumably as its next argument takes the name of a program to run after doing... something. What that something is depends on whatwith-contenv
is on your system.