Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site security.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!linus!security!jjg From: jjg@security.UUCP (Jeff Glass) Newsgroups: net.unix-wizards,net.bugs.4bsd Subject: csh and I/O redirection Message-ID: <922@security.UUCP> Date: Tue, 2-Jul-85 17:47:21 EDT Article-I.D.: security.922 Posted: Tue Jul 2 17:47:21 1985 Date-Received: Thu, 4-Jul-85 04:16:06 EDT Reply-To: jjg@security.UUCP (Jeff Glass) Organization: MITRE Corp., Bedford, Ma. Lines: 30 Xref: watmath net.unix-wizards:13713 net.bugs.4bsd:1583 put these four lines in a file, say cshtest : #! /bin/csh -f cat << END | ( sh & ) echo hi there END ( the intent is to send some commands to sh to be executed in the background, without csh printing the job number of the sh. ) now, from csh, enter the command source cshtest and note that you see the message "hi there". now enter the commands chmod +x cshtest ./cshtest nothing happens. removing either the parentheses or the ampersand causes the message to appear, but not quietly in the background. I don't understand why it works when source'd but not when exec'd, either. /jeff -- security!jjg@mitre-bedford.ARPA (MIL) {allegra,ihnp4,utzoo,philabs,uw-beaver}!linus!security!jjg (UUCP)