]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jan 2018 22:06:42 +0000 (22:06 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jan 2018 22:06:42 +0000 (22:06 +0000)
etc/profile.d/functions

index 4e71e329dac9ecc2352d5de4d0cf23a01e9719b9..07c83bf6843b2548102ec89191664faa8b655666 100644 (file)
@@ -175,7 +175,7 @@ shell_functions_csv() {
        local i
        for i in $(shell_functions); do
                printf '%s\t' "$i"
-               type "$i" | tail -n +2 | tr -d "\n" | sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g'
+               type "$i" | tail -n +2 | tr -d "\n" | sed -e 's/\\/\\\\/g' -e 's/\t/\\t/g' -e 's/}$/;}/'
                printf '\n'
        done
 }
@@ -664,7 +664,7 @@ urldecode() {
        printf '%b\n' "${url_encoded//%/\\x}"
 }
 
-boot_loader() {
+mbr_loader() {
        local mbr=`dd if=/dev/sda bs=446 count=1 2> /dev/null| strings -a`
 
        case "$mbr" in