rc-list - mailing list for the rc(1) shell
 help / color / mirror / Atom feed
* Re: The history command
@ 1991-09-13 18:21 Byron Rakitzis
  0 siblings, 0 replies; 2+ messages in thread
From: Byron Rakitzis @ 1991-09-13 18:21 UTC (permalink / raw)
  To: rc

seems reasonable, but you probably want a check in there so that a totally
bogus name like "foo" will print a diagnostic like "defaulting to -p".

I agree that it's quite bogus that the program should abort if it isn't
named the right thing.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* The history command
@ 1991-09-13 18:15 Rich Salz
  0 siblings, 0 replies; 2+ messages in thread
From: Rich Salz @ 1991-09-13 18:15 UTC (permalink / raw)
  To: rc

I'm deleting these lines from history.c:
        if (*s != '\0') {
                fprintf(stderr, "\"%s\": bad name for history program\n", progname);
                exit(1);
        }
Doing this lets me call the program
        -rc_his, --rc_his, --p_rc_his and -p_rc_his
Any reason to not delete that if from the distribution version?


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1991-09-13 18:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1991-09-13 18:21 The history command Byron Rakitzis
  -- strict thread matches above, loose matches on Subject: below --
1991-09-13 18:15 Rich Salz

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).