rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* "whatis" fails to preserve read/write invariance
@ 1992-06-28 23:33 Scott Schwartz
  0 siblings, 0 replies; only message in thread
From: Scott Schwartz @ 1992-06-28 23:33 UTC (permalink / raw)
  To: rc


The great thing about lisp is that read and write are complementary.
Rc is pretty good about that, but not perfect.  Consider this:

; touch 'x=foo'
; chmod +x 'x=foo'
; './x'=foo  
; whatis './x'
./x=foo
; whatis './x=foo'
./x=foo

Tricked!

In lisp the equals sign in the filename would have been quoted, like
the metacharacter it is.  In rc there is no user level read primative,
so you can't do that.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1992-06-28 23:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-06-28 23:33 "whatis" fails to preserve read/write invariance Scott Schwartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).