diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:33:49 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-08-23 20:38:17 +1200 |
commit | 59b6046684dd405f60d2a164b93ba9c50f5e80c4 (patch) | |
tree | 8c6385a23d6d82e636e0632752620e8049be78dd /bash/bashrc.d/prompt.bash | |
parent | Explicitly declare array to reassure shellcheck (diff) | |
download | dotfiles-59b6046684dd405f60d2a164b93ba9c50f5e80c4.tar.gz dotfiles-59b6046684dd405f60d2a164b93ba9c50f5e80c4.zip |
Fully expand FUNCNAME
Diffstat (limited to 'bash/bashrc.d/prompt.bash')
-rw-r--r-- | bash/bashrc.d/prompt.bash | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index ff8e4727..1a7a1c6f 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -81,7 +81,7 @@ prompt() { PS1='\['"$format"'\]'"$PS1"'\['"$reset"'\] ' PS2='> ' PS3='? ' - PS4='+<$?> ${BASH_SOURCE:-$BASH}:$FUNCNAME:$LINENO:' + PS4='+<$?> ${BASH_SOURCE:-$BASH}:${FUNCNAME[0]}:$LINENO:' ;; # Revert to simple inexpensive prompts @@ -226,7 +226,7 @@ prompt() { # Print error *) - printf '%s: Unknown command %s\n' "$FUNCNAME" "$1" >&2 + printf '%s: Unknown command %s\n' "${FUNCNAME[0]}" "$1" >&2 return 2 ;; esac |