*BSD News Article 92114


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!paladin.american.edu!02-newsfeed.univie.ac.at!03-newsfeed.univie.ac.at!fstgal00.tu-graz.ac.at!not-for-mail
From: schinagl@pe.avl.co.at (Hermann Schinagl)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: A simple csh script question
Date: Fri, 28 Mar 1997 07:47:50 GMT
Organization: Graz University of Technology, Austria
Lines: 36
Message-ID: <333b76fc.3575811@avlgate.avl.co.at>
References: <332D9485.27FD@inJapan.net> <86d8sy757n.fsf@g.pet.cam.ac.uk>
NNTP-Posting-Host: firewallext.avl.co.at
X-Newsreader: Forte Free Agent 1.1/32.230
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37872

On 17 Mar 1997 18:18:04 +0000, Gareth McCaughan
<gjm11@dpmms.cam.ac.uk> wrote:

>How about:
>
>    ls $(~$id) | grep forward


Sorry, does not work:

------------
#!/bin/sh

US=sun_test

HOMEDIR=$(~$US)
echo $HOMEDIR
------------

Output:

~sun_test

and not /disk1_1/users/sun_test



       Ciao Hermann






>