Displaying 3 results from an estimated 3 matches for "linew".
Did you mean:
line
2018 Aug 13
2
Re: [PATCH nbdkit 08/10] freebsd: In scripts use 'env bash' instead of '/bin/bash'.
...d W.M. Jones wrote:
> The path to bash on FreeBSD is /usr/local/bin/bash.
> ---
> +++ b/docs/make-links.sh
> @@ -1,4 +1,4 @@
> -#!/bin/bash -
> +#!/usr/bin/env bash
This loses the '-' argument that used to be passed by the kernel (but
you can't add it back to the #! linew without using BSD's or GNU
coreutils' recent addition of 'env -S'). Is it worth adding a 'set -'
line later in the script to compensate, if you were previously passing
the '-' as a way to reset the shell from inheriting environmental
differences?
--
Eric Blake...
2018 Aug 13
0
Re: [PATCH nbdkit 08/10] freebsd: In scripts use 'env bash' instead of '/bin/bash'.
...sh on FreeBSD is /usr/local/bin/bash.
> >---
>
> >+++ b/docs/make-links.sh
> >@@ -1,4 +1,4 @@
> >-#!/bin/bash -
> >+#!/usr/bin/env bash
>
> This loses the '-' argument that used to be passed by the kernel
> (but you can't add it back to the #! linew without using BSD's or
> GNU coreutils' recent addition of 'env -S'). Is it worth adding a
> 'set -' line later in the script to compensate, if you were
> previously passing the '-' as a way to reset the shell from
> inheriting environmental differences?...
2018 Aug 12
13
[PATCH nbdkit 00/10] FreeBSD support.
With these patches, a majority of tests pass. The notable
things which are still broken:
- Because FreeBSD links /home -> /usr/home, $(pwd) gives a different
result from realpath(2). Therefore some tests which implicitly
rely on (eg) a plugin which calls nbdkit_realpath internally and
then checking that path against $(pwd) fail.
- Shebangs (#!) don't seem to work the same way