[net.unix] Creating :->file

jc@mit-athena.UUCP (John Chambers) (04/25/85)

> Come on, the only real way to do it is:
> :-> file
>			Credit to: Jyrki Yli-Nokari
>			...mcvax!enea!tut!jty


No sooner said than done!  This struck me as a real good idea,
so I quit from readnews and typed:

  cat >:-.c
  main(){return 0;}
  ^D
  cc -o :- :-.c

After a brief pause, I checked and found a garbage file called
"test", so I typed:

  :->test
  :->footest
  ls -l *test

and it showed that "test" and "footest" both existed, and were
empty.  Thanks a lot for the idea for the new system utility!

The only problem is that, on Berkeley Unix, I can't rcp the source
file to another system.  The ':' in the name causes really bizzarre
behavior.  Oh well....

-- 

			John Chambers [...!decvax!mit-athena]

He who has made no mistakes has probably made nothing at all.

dave@circadia.UUCP (David Messer) (04/29/85)

> > Come on, the only real way to do it is:
> > :-> file
> 
> No sooner said than done!  This struck me as a real good idea,
> so I quit from readnews and typed:
> 
>   cat >:-.c
>   main(){return 0;}
>   ^D
>   cc -o :- :-.c
> 
> 			John Chambers [...!decvax!mit-athena]

I like the fact that you wrote this in C for efficiency, but
shouldn't you have used the '-O' option?

:-)
-- 

Dave Messer   ...ihnp4!stolaf!umn-cs!circadia!dave