Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Which version of bash is that?
GNU bash, version 3.1.17 has a few occurrences of the string '-.'.
Code:
markus@samsung:~$ bash --version
GNU bash, version 4.1.10(2)-release (x86_64-slackware-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
markus@samsung:~$
Quote:
But a quick glance will show that the period is only punctuation
terminating the sentence talking about the hyphen.
...
Here the sections of the manpage
Code:
yank-last-arg (M-., M-_)
Insert the last argument to the previous command (the last word of the previous history
entry). With an argument, behave exactly like yank-nth-arg. Successive calls to
yank-last-arg move back through the history list, inserting the last argument of each line in
turn. The history expansion facilities are used to extract the last argument, as if the "!$"
history expansion had been specified.
and
Code:
insert-last-argument (M-., M-_)
A synonym for yank-last-arg.
I don't think that the '.' is punctuation in these cases.
markus@samsung:~$ bash --version
GNU bash, version 4.1.10(2)-release (x86_64-slackware-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
markus@samsung:~$
Here the sections of the manpage
Code:
yank-last-arg (M-., M-_)
Insert the last argument to the previous command (the last word of the previous history
entry). With an argument, behave exactly like yank-nth-arg. Successive calls to
yank-last-arg move back through the history list, inserting the last argument of each line in
turn. The history expansion facilities are used to extract the last argument, as if the "!$"
history expansion had been specified.
and
Code:
insert-last-argument (M-., M-_)
A synonym for yank-last-arg.
I don't think that the '.' is punctuation in these cases.
Markus
No, it's not, but "M-.", in other words "press&hold Alt, then ." has
a completely different meaning from a textual "-." . Those are emcas-
like keybindings.
thanks for the clarification, I was wondering what this charactes do and didn't understand it. I did not understand that it are keybindings (well, I didn't use Emacs since the year of 1996 )
But now it is clear that in the Bash-manpage there is no "-." mentioned and same thing for ksh.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.