[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behaviour of access



I wrote

| MAIL=<={access -rd1 /var/mail /var/spool/mail /usr/spool/mail}^/^$USER
| if {~ $MAIL ()} {echo 'WARNING: No mail directory!' >[1=2]}

Aaargh.  Stupid me.  Stooooooopid me.  Solaris doesn't set USER, it sets
LOGNAME instead.  After discovering that ages ago I started setting USER
myself, but had forgotten about it.  At the above point, of course, USER
is not set, so MAIL gets unset even though the access function does find
the mail directory.

How silly.

And I had to set up truss to trace my shell during the login process to
find this simple fact.  Maybe I should take up basket weaving instead and
quit fooling around with computers.

- Harald 8-/