From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from oldp.astro.wisc.edu ([128.104.39.15]) by hawkwind.utcs.toronto.edu with SMTP id <2751>; Sat, 17 Apr 1993 12:47:58 -0400 Received: by oldp.astro.wisc.edu (5.65/DEC-Ultrix/4.3) id AA28250; Sat, 17 Apr 1993 11:47:19 -0500 Message-Id: <9304171647.AA28250@oldp.astro.wisc.edu> To: "David J. Fiander" Cc: rc@hawkwind.utcs.toronto.edu Subject: Re: rc 1.5 Date: Sat, 17 Apr 1993 12:47:18 -0400 From: Alan Watson X-Mts: smtp [Re flags:] > It's also there so scripts can change flags. I would like to > be able to write scripts that turn on the -x flag internally, > when their debug flag is specified on the command line. I would also find this useful, especially for debugging functions. > Actually, /bin/sh, /bin/ksh, and the POSIX.2 shell all check > the current directory for a file named "test", and _then_ > search the path for a file named "test" which is also > executable. None of the Bourne derivatives (sh, sh5, ksh, and bash) behave that way on this machine (Decstation running Ultrix 4.3); the only ones which get it `right' are the csh derivatives (csh and tcsh). > The reason I would like "." to search the path is that then I > can create the directory /usr/bin/rclib, and store > scripts in there. Then my scripts can just say > > . rclib/read > > to load the read function that I have stored there. Try: rclib = /usr/bin/rclib . $rclib/read