[arch-general] update today causes avantfax_hourly cron: Exec format error?

Eli Schwartz eschwartz at archlinux.org
Sun Aug 26 13:57:45 UTC 2018

On 8/26/18 9:48 AM, SET wrote:
> Le dimanche 26 août 2018 15:11:36 CEST Eli Schwartz via arch-general a écrit :
>> some wonderful shebang
> Ha ! My wonderful shebang was "#/bin/sh" instead of "#!/bin/sh".
> After correcting the typo, run-parts does not complain.

Yes, that helps if the script is actually a valid script and not a
crontab. :)

I do wonder why run-parts uses execv instead of execvp:


I would think that emulating the well-known behavior of "for actual
shell scripts which do not have shebangs, try using /bin/sh if no
interpreter is detected" would be a reasonable thing to do.

Maybe they're trying to encourage people to use proper shebangs. This is
a nice idea *in principle*, because admittedly, people should.

Eli Schwartz
Bug Wrangler and Trusted User

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20180826/1231bd7f/attachment.asc>

More information about the arch-general mailing list