Hi!

On Fri, 2014-02-14 at 10:10:52 +0100, Richard Levitte wrote:
> Package: dpkg
> Version: 1.17.6
> Severity: important
> Tags: patch

> This is a problem that I encountered when trying to upgrade php-aws-sdk from
> 1.5.6.2-1 to 2.5.2-1, I would get these messages (the first repeats a large
> number of times):
[…]
> The code performed with sh -c will never be able to succeed, easily
> demonstrated as follows:
> 
>     : ; sh -c 'return 0'
>     sh: line 0: return: can only `return' from a function or sourced script
>     : ; echo $?
>     1
> 
> However, using exit works, as expected:
> 
>     : ; sh -c 'exit 0'
>     : ; echo $?
>     0

Hmm, I guess you are using bash instead of dash as /bin/sh.

> Patch included

Thanks, merged locally, will be in my next push targetting 1.17.7.

Regards,
Guillem


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to