[Novalug] small puzzle (was Re: Remembering the ol' days)

Beartooth karhunhammas at Lserv.com
Sun Nov 25 16:24:48 EST 2007


On Sat, 24 Nov 2007, Kevin Cole wrote:

> P.S. Normally, things that you want all users to be able to run live
> in either /usr/bin/ or /usr/local/bin, with the permissions 755. The
> ownership won't matter. So, if you're doing this a lot for a lot of
> people, then login as root, and type:
>
> mv /home/btth/adventure /usr/local/bin/
> chmod 755 /usr/local/bin/adventure
>
> Then all users will be able to run it by typing "adventure" (no
> periods).  On a typical system, all users have both /usr/bin and
> /usr/local/bin in their default paths.

 	Things're wild & wooly. I did the chmod 755 on it where 
it is -- as root, which messed up. So I did a chown btth:btth, 
followed by a chmod 755 as btth. Now both (on this machine) can 
run it, given the full command. (I may go read man alias again.)

 	But they get big differences.

[btth at localhost sig]$ su - frc
Password:
[frc at localhost ~]$ /usr/share/doc/bash-3.2/scripts/adventure.sh
You found a discarded empty knapsack.

Welcome to the Adventure shell!  Do you need instructions? [y/n] 
y

                 Instructions for the Adventure shell

Welcome to the Adventure shell!  In this exploration of the UNIX 
file system, I will act as your eyes and hands.  As you move 
around, I will describe whatever is visible and will carry out 
your commands.  The general form of a command is
         Verb Object Extra_stuff. Most commands pay no attention 
to the "Extra_stuff", and many do not need an "Object".  A 
typical command is
         get all

which picks up all files in the current "room" (directory).

You can find out what you are carrying by typing the 
command
         inventory

The command "help" results in a full description of all commands 
that I understand.  To quit the Adventure shell, type
         quit

There are UNIX monsters lurking in the background.  These are 
also known as "commands with arguments".

Good luck! Type a newline to continue:

 	BUT :

[btth at localhost ~]$ /usr/share/doc/bash-3.2/scripts/adventure.sh
You found a discarded empty knapsack.

Welcome to the Adventure shell!  Do you need instructions? [y/n] 
y

                 Instructions for the Adventure shell

Welcome to the Adventure shell!  In this exploration of the UNIX 
file system, I will act as your eyes and hands.  As you move 
around, I will describe whatever is visible and will carry out 
your commands.  The general form of a command is
         Verb Object Extra_stuff. Most commands pay no attention 
to the "Extra_stuff", and many do not need an "Object".  A 
typical command is
         get all

which picks up all files in the current "room" (directory).

You can find out what you are carrying by typing the command
         inventory

The command "help" results in a full description of all commands 
that I understand.  To quit the Adventure shell, type
         quit

There are UNIX monsters lurking in the background.  These are 
also known as "commands with arguments".

Good luck!
Type a newline to continue: inventory

 	[NB: yes, I forgot the newline.]

/usr/share/doc/bash-3.2/scripts/adventure.sh: line 254: !": event 
not found

You are in your own home.

This room contains:
10-30-07-RN-in GuestAcctRouti NOtoPC.gif     ribbon.gif 
vtmap2000.pdf

 	[etc.]

There are exits labeled:
Avatars        Hardware       News           rpms           tips
Desktop        HouseStuff     pdfs           Saved_FromPan  TLM
Documents      identify-proce Pictures       Sibelius

 	[etc.]

as well as a passage overhead.
There are shadowy figures in the corner.
-advsh>

 	I'm guessing it's not just another version to play, but 
one that uses the game to teach unix. I think I need a different 
one for Forrest -- some form meant for simple play. I wonder if a 
yum update could have moved me to this one; I'm pretty sure it 
was starting me at a road end originally.

-- 
Beartooth Implacable, Historian of Tongues from Way Back
Double Retiree, Linux Duffer, Curmudgeon On Line


More information about the Novalug mailing list