todd@leveno/q2 ~?3$ # $(echo hi > /dev/tty)
todd@leveno/q2 ~?4$ 

I can't say as though I am aware of anything that can be done after a # that
starts the line on the shell.

As a corilary, ':' is different:

todd@leveno/q2 ~?4$ : $(echo hi > /dev/tty)
hi
todd@leveno/q2 ~?5$ 


Penned by Marc Espie on 20120912 10:48.51, we have:
| Consider the common makefile idiom:
| 
| a:
|       # cmd that builds a
|       @cmd
| 
| The # line is actually a comment for the shell, that will be echo'd,
| and then passed to a new shell... which does nothing with it.
| 
| I'm wondering if there are any ways (possibly using \ or stuff like that)
| that there could be an actual command that starts with a #, and then
| would be passed to a shell, and actually get the shell to do something.
| 
| Baring that, the job executor in make can simply echo those #lines and
| skip the expensive "fork a shell to do nothing" part...
| 
| (I mostly know what our make does, I'm wondering if posix has some ways
| where this could start things, or some other make like solaris/free/net.
| and if we want it.)

-- 
Todd Fries .. [email protected]

 _____________________________________________
|                                             \  1.636.410.0632 (voice)
| Free Daemon Consulting, LLC                 \  1.405.227.9094 (voice)
| http://FreeDaemonConsulting.com             \  1.866.792.3418 (FAX)
| 2525 NW Expy #525, Oklahoma City, OK 73112  \  sip:[email protected]
| "..in support of free software solutions."  \  sip:[email protected]
 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
                                                 
              37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
                        http://todd.fries.net/pgp.txt

Reply via email to