$_ doesn't work

Bug #1628992 reported by Jahdo Lee
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Terminal
New
Undecided
Unassigned

Bug Description

$_ does not work in Terminal 0.4

## Steps
1. cd Downlaods
2. cd $_

## Error Message
bash: cd: __bp_preexec_invoke_exec: No such file or directory

Revision history for this message
Zisu Andrei (matzipan) wrote :

Hello,

Can you clarify what is the expected behavior?

Revision history for this message
Jahdo Lee (antisunny) wrote :

$_ means the last used file path.

for example,

ls wordpress-4.6.zip && unzip -l $_
# same as
ls wordpress-4.6.zip && unzip -l !#:1

Revision history for this message
Zisu Andrei (matzipan) wrote :

Apologies I have not asked this before, but can you give an example of a terminal in which this works?

Revision history for this message
Jahdo Lee (antisunny) wrote :

P.R.C National Day 10.1 - 10.7

it works in Gnome-terminal in Ubuntu 16.04, Terminal/iTerm2 in Mac OS X

Oh, it occurs to me that I use zsh, not bash, in there environments.

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.