[Pkg-privacy-maintainers] Bug#909517: torify: does not expand shell aliases

intrigeri intrigeri at debian.org
Sun Oct 21 08:50:09 BST 2018


Control: reassign -1 torsocks

Hi Jeff,

(almost fully quoting for the torsocks maintainers' sake)

Jeff Cliff:
> It is often handy to create shell aliases to do tasks that would otherwise require a lot
> of retyping the same thing over and over.  For example 'git push' might very well be
> aliased to 'push' at the shell level by 

> alias push='git push'

> then you could conceivably use 

>> torify push 

> as a shorthand for 

>> torify git push <git url>

> this however fails: torify does not expand the aliases and doesn't know what 'push' is.

Nowadays torify is a mere wrapper around torsocks ⇒ reassigning.

> As mentioned in the ubuntu downstream bug ( https://bugs.launchpad.net/ubuntu/+source/tor/+bug/1687037 )
> it doesn't matter what shell you use, torify just doesn't check.

> what happens: torify takes the arguments passed in without checking if there are aliases involved
> what should happen: is torify should be alias-aware.

Cheers,
-- 
intrigeri



More information about the Pkg-privacy-maintainers mailing list