From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076327921137.tru64-unix-managers.marc@archive.invalid> From: Gerencia do CI Date: Tue, 09 Jan 1996 18:41:37 +0000 To: tru64-unix-managers Subject: tilde substitution X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076327921137 Fellows, I'm having some trouble with the tilde substitution within a script. I need to use it to find out the home directory of a user, but the username is passed to my script as a variable. Here's the problem: #!/bin/ksh # Actually, the variable below is set by another program: usuario="snoopy" # I'd like the command below to return, say, /usr/users/snoopy # but it doesn't... echo ~$usuario -------------------------------------------------------------------- I tried many (weird) :) combinations of ` ` and " ", but without success... Can someone point me the way? Thanks! Henrique Avila Vianna snoopy@ufpel.tche.br