How to insert code snippets on the command line without executing them

Posted by eldersnake on Jul 13, 2015 3:26 AM EDT
The Linux Rain; By Bob Mesibov
Mail this story
Print this story

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).

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer, GNU, Linux, Standards

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.