Tom Hale
Tom Hale
Since we are talking performance here, ~~https://github.com/nvm-sh/nvm/issues/2334~~ #1932 is related. That issue documents that needing to call `nvm current` on each prompt is quite expensive (about 0.2 user + sys)....
> That's a link to this issue, which issue are you referring to? Oops, I meant #1932. I edited my initial message to reduce future confusion. @ljharb asked me to...
I'm finding it hard to believe that a basic functionality of scp is broken - ie, copying a file to a remote server. Surely there must be a work-around for...
Work around: `alias scp='BINARY_SSH=/usr/bin/scp scp'` Or to enable use from inside scripts, call the following script `~/bin/ssh-ident-wrapper`, and symlink it as `~/bin/scp`: and `~/bin/ssh`: ``` #!/bin/bash # Wrapper to make...
Would checking `argv[0] == scp` allow a work-around?
+1 for this PR. I set my own `DEBUG` trap (to time each shell command), and it gets ugly if not all contained in one (well named) function. Are there...
@postmodern how should I deal with that in this PR?
@postmodern Merry Festivus. Where to from here?
`set -o functrace` is what you're after. Adding this, the output is: ``` Command: echo 'outside of a function' outside of a function Command: func Command: func Command: echo 'inside...
@postmodern Here is the code you want: ``` #!/bin/bash set +o functrace trap 'trap_func' DEBUG trap_func() { [[ $BASH_COMMAND != "${FUNCNAME:0}" ]] && echo "Command: $BASH_COMMAND" } func() { echo...