LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Syndicated Linux News (https://www.linuxquestions.org/questions/syndicated-linux-news-67/)
-   -   LXer: How to insert code snippets on the command line without executing them (https://www.linuxquestions.org/questions/syndicated-linux-news-67/lxer-how-to-insert-code-snippets-on-the-command-line-without-executing-them-4175547842/)

LXer 07-13-2015 02:33 AM

LXer: How to insert code snippets on the command line without executing them
 
Published at LXer:

You can store a code snippet in a shell alias or a function, but when you type the alias or function name in a BASH shell and press 'Enter', the shell executes (or tries to execute) the snippet. That's no good if the snippet is incomplete or needs editing. A simple workaround is to paste the snippet at the next shell prompt, as explained (in this article).

Read More...


All times are GMT -5. The time now is 04:55 PM.