Xref: utzoo comp.sys.sequent:819 comp.unix.questions:28450 comp.unix.misc:918 comp.unix.admin:943 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!uunet!zephyr.ens.tek.com!tektronix!sequent!petebob From: petebob@sequent.UUCP (Pete_Bob Apple) Newsgroups: comp.sys.sequent,comp.unix.questions,comp.unix.misc,comp.unix.admin Subject: Re: Korn Tilde expansion Keywords: korn tilde Message-ID: <52370@sequent.UUCP> Date: 5 Feb 91 19:13:42 GMT References: <4401@syma.sussex.ac.uk> Reply-To: petebob@eng3.UUCP (Pete Apple) Organization: Sequent Computer Systems, Inc. Lines: 37 In article <4401@syma.sussex.ac.uk> stevedc@syma.sussex.ac.uk (Stephen Carter) writes: >Sequent Dynix - Korn Shell tilde (~) expansion >---------------------------------------------- > >We want to allow the operators the option of entering (eg) >~stevec/foo.txt instead of having to enter >/user3/division/section/stevec/foo. > >However, try as we may, we cannot get the following logic (or a wide >range of variants of it to work: > > >We have tried it with and without single quotes, double quotes, curly >brackets... > >Question: Can it be done? If so how? If not on Dynix, then is this >inability a 'feature' of Dynix. #!/bin/ksh # . # . cuts here to make it shorter echo " from (eg /user2/pers/artemish/wp1/file1.txt) : \c" read from eval from=$from echo $from Hope this helps. Ksh on Dynix is (hopefully) equivalent to ksh on any other machine. (That's what we had in mind, anyway. :-) -- Pete_Bob Apple Sequent Computer Systems petebob@sequent.com, sequent!petebob 15450 S.W. Koll Parkway Bob is not just a name.. Beaverton, Oregon 97006 It's a way of life.. (503) 626-5700