Skip to main content

Timeline for Understand the meaning of `$_`

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
May 2, 2016 at 9:47 comment added Jeff Schaller FYI, the canonical, up-to-date version of the bash manual is: gnu.org/software/bash/manual/bashref.html . It's version 4.3 while the linuxcommand page was 4.1.
May 2, 2016 at 7:18 comment added Vombat For the mail part I have not used Unix mail and don't have a working mail installed on my system now so cannot give you example. But should be obvious if you follow the description of MAILPATH in linuxcommand.org/lc3_man_pages/bash1.html
May 2, 2016 at 6:50 comment added Vombat Open your .bashrc and comment out every line there. Keep only a single line containing a command like echo "test" or similar. Save and close. Then run bash and immediately echo $_. This last echo should print test in the output.
May 2, 2016 at 0:00 comment added Tim Thanks. (1) can you explain the third case with examples? (2) When I open a new gnome terminal tab, the output of echo $_ is EDITOR, and why is it? Which case does it follow? (3) Can you given an example of how to check mails, and of using $_ in this case?
May 1, 2016 at 22:31 history edited Vombat CC BY-SA 3.0
added 90 characters in body
May 1, 2016 at 21:37 history edited Vombat CC BY-SA 3.0
added 145 characters in body
May 1, 2016 at 21:25 history edited Vombat CC BY-SA 3.0
added 7 characters in body
May 1, 2016 at 21:17 history edited Vombat CC BY-SA 3.0
added 149 characters in body
May 1, 2016 at 21:05 history edited Vombat CC BY-SA 3.0
added 120 characters in body
May 1, 2016 at 21:00 history edited Vombat CC BY-SA 3.0
added 120 characters in body
May 1, 2016 at 20:58 history edited Cyrus CC BY-SA 3.0
layout fixed
May 1, 2016 at 20:57 history answered Vombat CC BY-SA 3.0