Re: [PATCH][MINOR] Use FindBin::RealBin to allow stow to stow itself.

Adam Spiers <[email protected]> Sat, 20 Jul 2013 19:21:26 +0100
Newsgroups gmane.comp.gnu.stow.bugs
Message-ID <[email protected]>
Hi,

Many thanks, but this patch appears to have a typo:

On Sat, Jun 22, 2013 at 05:33:27PM +0000, SJS wrote:
> 
> Signed-off-by: SJS <[email protected]>
> ---
>  bin/stow.in |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/bin/stow.in b/bin/stow.in
> index 5263fe8..3a77d30 100755
> --- a/bin/stow.in
> +++ b/bin/stow.in
> @@ -415,6 +415,10 @@ use POSIX qw(getcwd);
>  use Getopt::Long;
>  
>  @USE_LIB_PMDIR@
> +
> +use FindbBin;
       ^^^^^^^^

Should be FindBin, presumably.

> +use lib "$FindBin::RealBin/../lib";
> +
>  use Stow;
>  use Stow::Util qw(parent error);
>  
> -- 
> 1.7.10.4

Could you give some detail about the use case, and how you tested it?

Thanks,
Adam