Getting a user's default login directory from a different account in the bourne shell

From: Christopher Knorr <cknorr_at_hops.com>
Date: Fri, 24 Jul 1998 11:41:21 -0400

My original question was how I could get the equivalent of the C-shell
tilde character to work in a bourne
shell script.

The replies have come in fast and furious (the overwhelming suggestion is
to use the $HOME environment
variable) and are much appreciated, but I don't think I articulated my problem
quite properly. I need this to work FROM A DIFFERENT ACCOUNT. In other
words, I need to be able to:

ls -l ~cknorr

when I'm actually logged in as someone else.

In the C-shell this works perfectly. No such luck in the bourne shell!

Any help is still appreciated!

Chris
cknorr_at_hops.com
305-827-8600 ext. 238 (voice)
305-827-0999 (fax)
Received on Fri Jul 24 1998 - 15:44:15 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT