#909517 torify: does not expand shell aliases

Package:
torsocks
Source:
torsocks
Description:
use SOCKS-friendly applications with Tor
Submitter:
Jeff Cliff
Date:
2026-07-06 17:45:38 UTC
Severity:
normal
Tags:
#909517#5
Date:
2018-09-24 17:03:46 UTC
From:
To:
Dear Maintainer,

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

as a shorthand for

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

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.

tor:    Installed: 0.3.4.8-1
debian: buster

#909517#10
Date:
2018-10-21 07:50:09 UTC
From:
To:
Hi Jeff,

(almost fully quoting for the torsocks maintainers' sake)

Jeff Cliff:

Nowadays torify is a mere wrapper around torsocks ⇒ reassigning.

Cheers,

#909517#23
Date:
2025-03-10 13:03:59 UTC
From:
To:
Hey,

upstream responded and closed
https://gitlab.torproject.org/tpo/core/torsocks/-/issues/40027#note_3169763

"I doubt most other tools supports this. Not a problem in torsocks."

Regards,

hefee
require a lot
very well be
what 'push' is.
ubuntu/+source/tor/+bug/1687037 )
there are aliases involved

#909517#28
Date:
2025-03-10 13:03:59 UTC
From:
To:
Hey,

upstream responded and closed
https://gitlab.torproject.org/tpo/core/torsocks/-/issues/40027#note_3169763

"I doubt most other tools supports this. Not a problem in torsocks."

Regards,

hefee
require a lot
very well be
what 'push' is.
ubuntu/+source/tor/+bug/1687037 )
there are aliases involved