torify does not expand shell aliases

Bug #1687037 reported by themusicgod1
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tor (Debian)
New
Unknown
tor (Ubuntu)
New
Undecided
Unassigned

Bug Description

It is sometimes handy to be able to be able to set up aliases via your shell that allow you to type something complicated in a shorter way. Shells like bash support this via 'alias'.

bash:
themusicgod1@Hedy:~/testdir$ alias | grep 'l='\''ls'\'
alias l='ls'
themusicgod1@Hedy:~/testdir$ ls
bar foo
themusicgod1@Hedy:~/testdir$ l
bar foo
themusicgod1@Hedy:~/testdir$ torify l
ERROR: l cannot be found.

Obviously ls doesn't use network so there's no benefit here, but there are commands that have complicated arguments that you can continually type and retype(think: ssh or git) that it is useful to be able to 'alias' these away. Especially if you're in an environment with a lot of people typing the same thing over and over without fully understanding it (at first) eg a school environment with students.

This doesn't just happen with bash but also with zsh and my own shell (ass):

zsh:
Hedy% alias l='ls'
Hedy% l
bar foo
Hedy% torify l
ERROR: l cannot be found.

ass:
[3][Fri Apr 28 10:58:59 2017][/home/themusicgod1/testdir]alias l ls

[4][Fri Apr 28 10:59:03 2017][/home/themusicgod1/testdir]torify l
l
ERROR: l cannot be found.

[5][Fri Apr 28 10:59:04 2017][/home/themusicgod1/testdir]l
bar foo testme

Ubuntu: 17.04 zesty
tor: 0.2.9.10-1ubuntu1
ass: 0.3.7.4
zsh: 5.2-5ubuntu1
bash: 4.4-2ubuntu1

tags: added: zesty
tags: added: artful
tags: added: bionic
tags: added: cosmic
Changed in tor (Debian):
status: Unknown → New
tags: added: disco
tags: added: eoan
tags: added: focal
tags: added: jammy
tags: added: kinetic
tags: added: lunar
tags: added: mantic
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.