Debian Codegraph @

tests/fixtures/file-detection/test.sh

raw
1 #!/bin/sh
2 echo "what a nice bash script!!"
3 perl_test=$(mktemp)
4 cat > "${perl_test}" << "EOF2"
5 #!/usr/bin/perl
6 use YAML::XS qw(LoadFile);
7
8 sub ent {
9 my ($v,$c,$p) = @_;
10 ref $v eq 'HASH'
11 and map { $c = ent($_,$c//0,$v) } keys %$v
12 or $p and $c = ent($p->{$v},$c)
13 or $v and not ref $v and $v eq "enabled" and $c++;
14 return $c;
15 }
16
17 exit ent(LoadFile($ARGV[0]))
18 EOF2
19
20 echo ${fofofof}