tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Gerencia do CI <manager () minerva ! ufpel ! tche ! br>
To: tru64-unix-managers
Subject: tilde substitution
Date: Tue, 09 Jan 1996 18:41:37 +0000	[thread overview]
Message-ID: <96076327921137.tru64-unix-managers.marc@archive.invalid> (raw)


   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

                 reply	other threads:[~1996-01-09 18:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox