*BSD News Article 35506


Return to BSD News archive

Xref: sserve comp.unix.user-friendly:2856 comp.unix.solaris:22529 comp.unix.programmer:19861 comp.unix.misc:13816 comp.unix.aux:15423 comp.unix.bsd:14849 comp.unix.aix:43790
Newsgroups: comp.unix.user-friendly,comp.unix.solaris,comp.unix.programmer,comp.unix.misc,comp.unix.aux,comp.unix.bsd,comp.unix.aix
Path: sserve!newshost.anu.edu.au!munnari.oz.au!yarrina.connect.com.au!harbinger.cc.monash.edu.au!msuinfo!agate!ames!decwrl!raven.alaska.edu!camelot!fxars
From: fxars@camelot.acf-lab.alaska.edu (Al Sparks)
Subject: Re: xargs and alias commands
In-Reply-To: jsm@mitekgold1's message of 30 Aug 1994 19:42:12 GMT
Message-ID: <FXARS.94Sep4201921@camelot.acf-lab.alaska.edu>
Followup-To: comp.unix.user-friendly,comp.unix.solaris,comp.unix.programmer,comp.unix.misc,comp.unix.aux,comp.unix.bsd,comp.unix.aix
Lines: 24
Sender: news@raven.alaska.edu (USENET News System)
Organization: University of Alaska Fairbanks
References: <33af70$8rd@usenet.INS.CWRU.Edu> <33e3kt$i1i@wombat.cssc-syd.tansu.com.au>
	<CHRISB.94Aug29144419@wombat.cssc-syd.tansu.com.au>
	<34022k$4lu@news.cerf.net>
Distribution: inet
Date: Mon, 5 Sep 1994 04:19:21 GMT

>>>>> "S" == Shane McRoberts <jsm@mitekgold1> writes:

    S> Chris Bitmead (chrisb@wombat.cssc-syd.tansu.com.au) wrote: :
    S> I'll be the first to back up BSD in many areas, but csh would
    S> not be one : of them. The design flaws in csh are well
    S> documented. What is it that you : can do in csh that you can't
    S> do in the bourne flavoured shells?

    S> setenv.  This one bugs me.  Is there any way in sh/ksh/bash to
    S> set an exported variable in a single command?  How about
    S> listing only exported or non-exported variables?

In sh and ksh (and probably bash), you can list exported variables with
    $ export
with no args.

In ksh
    $ export variable=value
will work in one command.  In sh, I think you would have to 
    $ variable=value; export variable
which is two commands.

I haven't checked bash, but it has a lot of ksh tendencies so you see
the possibilities for checking it out.  === Al