[TUHS] Bourne shell and comments
Bakul Shah
bakul at bitblocks.com
Thu Apr 20 03:36:23 AEST 2017
On Wed, 19 Apr 2017 10:31:53 MDT Grant Taylor <gtaylor at tnetconsulting.net> wrote:
> I think you're effectively doing the same thing that I'm doing by having
>
> my prompt start with '#', thus turning copy & paste ""errors into
> pasting comments. Just a difference of a '#' comment character and a
> ':' label.
>
> I see little difference between ':' and '#' in this case.
>
> Please help me understand if I'm wrong.
To see the difference try this:
# echo one; echo two
: echo one; echo two
You can select the whole line starting with : and have the
command re-excute. This is more useful in rc since it doesn't
store history or have ^n/^p etc bound to scrolling through
history.
More information about the TUHS
mailing list