🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sequent
Article #469

Re: Korn Tilde expansion

#469
From: Pete_Bob Apple
Date: Tue, 05 Feb 1991 19:13
37 lines
1726 bytes
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:
>
<shell script deleted>
>
>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
Technical Details
Message-ID: <52370@sequent.UUCP>
Path: arc1-ca.pugleaf.net!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
References: <4401@syma.sussex.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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