File: update-bash-builtin-commands

package info (click to toggle)
adequate 0.15.6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 344 kB
  • sloc: perl: 1,129; python: 351; makefile: 113; sh: 89; ansic: 29
file content (9 lines) | stat: -rwxr-xr-x 194 bytes parent folder | download | duplicates (6)
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