🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: ch.comp.os.linux
Article #21994

Re: alias news='su - news; echo "y"'

#21994
From: Thomas Portmann
Date: Fri, 04 Jun 1999 00:00
25 lines
1417 bytes
Sven.Kirmess@gmx.net (AKA "Sven Kirmess ") said:
 > Wieso wird bei
 > alias news='su - news; echo "y"'
 > 
 > das echo nicht ausgef�hrt, bei
 > alias x='echo "y";echo "x"'
 > 
 > werden aber beide echo's ausgef�hrt? Kann man eine Loginshell nicht mit
 > einem weiteren Befehl verbinden?

weil su eine neue shell aufstartet. dein echo y wird also erst nach
beendigung der neuen shell ausgefuehrt. soweit ich mich errinnere ist
es durchaus moeglich dem su command parameter zu uebergeben welche
festlegen was in der neuen shell ausgefuehrt werden muss. allerdings
bin ich im moment nicht zu hause und habe daher keine su man page
fuer linux zur hand -> read it yourself ;-)


	tom

-- 
Windows 95: n.
    32-bit extensions and a graphical shell for a 16-bit patch to an 8-bit
    operating system originally coded for a 4-bit microprocessor,  written
         by a 2-bit company that can't stand for 1 bit of competition.
Technical Details
Message-ID: <7j7q7e$iu9$1@news.eunet.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3756E805.9D0E706D@gmx.net>

Show Full Headers
Complete Article Headers
X-Google-Language: GERMAN,ASCII
X-Google-Thread: f4b73,638b382d874ceee0
X-Google-Attributes: gidf4b73,public
From: portmann@elca.ch (Thomas Portmann)
Subject: Re: alias news='su - news; echo "y"'
Date: 1999/06/04
Message-ID: <7j7q7e$iu9$1@news.eunet.ch>
X-Deja-AN: 485560686
References: <3756E805.9D0E706D@gmx.net>
Organization: The 'trn' & John Doe Cie
Reply-To: sneaky56@gmx.net
Newsgroups: ch.comp.os.linux
X-Newsposter: Pnews 4.0-test46 (31 Oct 96)