Quantcast
Channel: Expand shell variable while editing command line - Unix & Linux Stack Exchange
Browsing all 2 articles
Browse latest View live

Answer by Kusalananda for Expand shell variable while editing command line

You may invoke the Readline function shell-expand-line by pressing Meta+Ctrl+e (on my system Meta is Esc) if the bash shell is in Emacs editing mode.Illustration:$ echo $PATHIf I now press Meta+Ctrl+e,...

View Article


Expand shell variable while editing command line

If I write ls bla.* at the prompt and then I press = while the cursor is still on the bla.* part of the command line, the list of files matching bla.* is printed. If I press *, that word is substituted...

View Article
Browsing all 2 articles
Browse latest View live