File: update-bash-builtin-commands

package info (click to toggle)
adequate 0.12~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 332 kB
  • sloc: perl: 1,114; python: 350; makefile: 139; sh: 89; ansic: 21
file content (9 lines) | stat: -rwxr-xr-x 194 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
#!/bin/sh
set -e
export LC_ALL=C
commands=$(bash -c "help '*'" 2>&1 \
| grep -o -E '^[^%: ]+:' \
| tr -d : \
| xargs
)
sed -r -e "s/(my @bash_builtins) = .*;/\1 = qw< $commands >;/" -i adequate