[Info-vax] Long uptime cut short by Hurricane Sandy

Bill Gunshannon billg999 at cs.uofs.edu
Sat Feb 2 23:03:40 EST 2013


In article <1c8108f9-4792-4eed-8dec-501dd86495ba at f6g2000yqm.googlegroups.com>,
	AEF <spamsink2001 at yahoo.com> writes:
> On Feb 2, 10:27 am, billg... at cs.uofs.edu (Bill Gunshannon) wrote:
>> In article <nospam-DA6E3B.16021402022... at news.chingola.ch>,
>>         Paul Sture <nos... at sture.ch> writes:
>>
>> > In article
>> > <57c7dde5-875e-46e7-a4ff-095bc5d52... at w7g2000yqo.googlegroups.com>,
>> >  AEF <spamsink2... at yahoo.com> wrote:
>>
>> >> Well, let's see. What does # do in Unix? Why it's either tells you
>> >> what follows is a comment or when in a prompt what follows is a
>> >> command run with full super user powers!
>>
>> >> Comment vs super user. Nice.
>>
>> 1.  Prompt is the shell, not Unix.
> Extreme nitpick. It's a shell that runs in Unix, which makes it a Unix
> shell.

It's also a shell that runs on VMS.  Does that make VMS Unix?

>> 2.  Prompt is totally user settable and has no significance whatsoever.
> Really? Running su gives you a # prompt!!! 

Only if you su to root and root has the "#" set as his prompt.  If you
su to any other user you will get whatever they have as their prompt.

>                                            I suppose su has nothing to
> do with Unix, either.

Nobody said that.  But you obviously have no idea what su actually does.

>>   Here is mine on the University server:
>>
>>                   login as: bill
>>                   Using keyboard-interactive authentication.
>>                   Password:
>>
>>                   server1#
> Irrelevant.

Why?  I am a regular user and my prompt is a "#". 

>>
>> 3.  I'll bet you also think the su command means "super user".
> You bet wrong. Also irrelevant.

So, what do you think the su command really does?  

>> > You missed out shebang, as in:
>>
>> > #!/bin/sh
> Oh, so # in a shell script is Unix, but in a prompt from the su
> command it's "the shell". 

Huh?  What are you talking about.  In one case it's output and in the
other it's input.  And in both cases it is shell.

>                             I don't believe su is a built-in. Hey,
> correct me if I'm wrong on that.

Who ever said it was?  And what does that have to do with the prompt
output by the shell?

>>
>> >http://en.wikipedia.org/wiki/Shebang_%28Unix%29
>>
>> I was going to mention that as the on place where a line beginning with
>> an octothorpe is not a comment and is not ignored.
>>
>> bill
>>
>> --
>> Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
>> billg... at cs.scranton.edu |  and a sheep voting on what's for dinner.
>> University of Scranton   |
>> Scranton, Pennsylvania   |         #include <std.disclaimer.h>
> AEF
> I vote for matzo ball soup. And then some roast chicken (with
> paprika), potatoes, and some beets.

And that statement makes as much sense as anything you have said about
Unix. You really should stick to VMS.

bill

-- 
Bill Gunshannon          |  de-moc-ra-cy (di mok' ra see) n.  Three wolves
billg999 at cs.scranton.edu |  and a sheep voting on what's for dinner.
University of Scranton   |
Scranton, Pennsylvania   |         #include <std.disclaimer.h>   



More information about the Info-vax mailing list