[TUHS] Bourne shell and comments
Grant Taylor
gtaylor at tnetconsulting.net
Thu Apr 20 03:59:20 AEST 2017
On 04/19/2017 11:36 AM, Bakul Shah wrote:
> To see the difference try this:
>
> # echo one; echo two
> : echo one; echo two
*nod*
> You can select the whole line starting with : and have the
> command re-excute.
Ah. That's contrary to why I use '#'.
I specifically want the command line to not be re-executed.
I purposefully select the portion of the command line that I want,
paste, and execute.
> This is more useful in rc since it doesn't
> store history or have ^n/^p etc bound to scrolling through
> history.
This makes perfect sense in the use case you describe.
Thank you for the explanation.
--
Grant. . . .
unix || die
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3717 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20170419/6609dc0f/attachment.bin>
More information about the TUHS
mailing list