Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!fs1!jthornto From: jthornto@ee.ubc.ca (Johan Thornton) Newsgroups: comp.sys.handhelds Subject: Re: specifying paths w/variables & progs Keywords: path, hp48sx Message-ID: <1617@fs1.ee.ubc.ca> Date: 17 Apr 91 12:23:54 GMT References: <231b3618.670790994@fergvax> <1523@tau.sm.luth.se> Sender: news@fs1.ee.ubc.ca Distribution: comp.sys.handhelds Organization: University of BC, Electrical Engineering Lines: 34 In article <1523@tau.sm.luth.se> d89-mlt@sm.luth.se (Morgan Lindqvist) writes: ->231b3618@fergvax.unl.edu (Ben Hollingsworth) writes: > ->>All this talk of renaming variables on the 48sx has made ->>me wonder: is it possible to specify a path when naming/ ->>executing a variable/program? Or how about jumping ->>instantly to a given directory (like cd)? -> >1) When I want to run a program on an other directory in a program I do -> like this: -> -> \<< ... { HOME BINP ASC\-> } PP ... \>> -> -> This program runs ASC\-> on directory BINP under HOME. -> PP (Path Program ) is on HOME and looks like this: -> -> \<< PATH \-> path \<< EVAL path EVAL \>> \>> -> ->2) If you just want to jumb to the directory BINP just key in: -> { HOME BINP } EVAL -> ->Morgan Lindqvist d89-mlt@sm.luth.se This is not a bad idea. Not much overhead at all. But note that you don't have to explicitly say HOME when switching to the BINP directory. Since that subdirectory is in HOME, it's always in the path. Likewise for 2), above -- to go to the BINP subdir just execute BINP. -- Johan Thornton (but my friends call me jthornto@ee.ubc.ca)