dash/ash
dash/ash
Posted Oct 2, 2014 9:41 UTC (Thu) by niner (guest, #26151)In reply to: dash/ash by ibukanov
Parent article: Bash gets shellshocked
Perl has use strict;
Perl does not mix program code with data.
Perl has a taint mode that catches many cases of missing input sanitation.
Perl's system() function only ever invokes /bin/sh if the given command contains shell metacharacters and supports the system PROGRAM LIST form that never ever invokes a shell (it uses exec()) at all and avoids many errors with missing parameter quoting.
Perl does not mix program code with data.
Perl has a taint mode that catches many cases of missing input sanitation.
Perl's system() function only ever invokes /bin/sh if the given command contains shell metacharacters and supports the system PROGRAM LIST form that never ever invokes a shell (it uses exec()) at all and avoids many errors with missing parameter quoting.
So I'd argue that it is much easier to program safely in Perl than in Bash.
