[TUHS] # (was Re: sh: cmd | >file)

Greg A. Woods woods at robohack.ca
Wed Jan 8 12:44:47 AEST 2020


At Mon, 6 Jan 2020 17:39:39 -0700, Warner Losh <imp at bsdimp.com> wrote:
Subject: Re: [TUHS] # (was Re: sh: cmd | >file)
>
>
> Or you might have cut and paste the commands from a script to test
> something, or to redo something by hand that failed for some reason.

Cut & Paste?

Most of us couldn't do that until the very late 1980's at earliest!

The poor man's cut&paste was to do something like 'sed -n 3,9p script |
sh', but I don't think I ever did that with csh in the days when a '#'
comment was for scripts only, so I don't know if old csh treated a pipe
on stdin as a script or not.

--
					Greg A. Woods <gwoods at acm.org>

Kelowna, BC     +1 250 762-7675           RoboHack <woods at robohack.ca>
Planix, Inc. <woods at planix.com>     Avoncote Farms <woods at avoncote.ca>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP Digital Signature
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200107/9d5b8b69/attachment.sig>


More information about the TUHS mailing list