Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!mcnc!ece-csc!ncrcae!ncr-sd!hp-sdd!hplabs!ucbvax!YALE.ARPA!ram-ashwin From: ram-ashwin@YALE.ARPA.UUCP Newsgroups: comp.sys.apollo Subject: #!/com/sh scripts and csr's Message-ID: <8710020323.AA20362@ATHENA.CS.YALE.EDU> Date: Thu, 1-Oct-87 23:23:12 EDT Article-I.D.: ATHENA.8710020323.AA20362 Posted: Thu Oct 1 23:23:12 1987 Date-Received: Sat, 3-Oct-87 09:07:47 EDT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 19 How do I get #!/com/sh scripts to read an Aegis shell startup file automatically, without having to source ~/user_data/sh.sh or ~/user_data/sh/startup explicitly in each shell script? Similarly, how do I pass other arguments to /com/sh (such as -eon or -script)? I tried putting flags after #!/com/sh in the first line, but as far as I could tell they didn't get read at all. Since /com/sh doesn't read a startup file by default, you end up not getting the right csr's etc. in many cases (e.g., if you cp'd a process to run that script, or if the shell script is run from a Unix shell which hasn't itself been created underneath a /com/sh with the right csr. This is a related problem; I have to do something gross like "/com/sh -start ~/user_data/sh.sh -c /bin/start_csh" to start Unix shells to get around this.) -- Ashwin Ram -- ARPA: Ram-Ashwin@cs.yale.edu UUCP: {decvax,linus,seismo}!yale!Ram-Ashwin BITNET: Ram@yalecs