*BSD News Article 35602


Return to BSD News archive

Xref: sserve comp.unix.user-friendly:2870 comp.unix.solaris:22787 comp.unix.programmer:19971 comp.unix.misc:13860 comp.unix.aux:15482 comp.unix.bsd:14869 comp.unix.aix:43968
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.duke.edu!news-feed-1.peachnet.edu!umn.edu!newsdist.tc.umn.edu!dawn.mmm.com!medlab6.mmm.com!dam
From: dam@medlab6.mmm.com (Dan Mercer)
Newsgroups: comp.unix.user-friendly,comp.unix.solaris,comp.unix.programmer,comp.unix.misc,comp.unix.aux,comp.unix.bsd,comp.unix.aix
Subject: Re: xargs and alias commands
Date: 8 Sep 1994 15:47:03 GMT
Organization: ClearSystems, Inc
Lines: 36
Distribution: inet
Message-ID: <34nbln$5es@dawn.mmm.com>
References: <34022k$4lu@news.cerf.net>
NNTP-Posting-Host: medlab6.mmm.com
X-Newsreader: TIN [version 1.1 PL9]

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

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

: thanks.

: shane
: =====================
: | j.shane.mcroberts |
: |mitek systems, inc.|
: |                   |
: | jsm@miteksys.com  |
: =====================

if you want to duplicate setenv behavior,  which exports all vars,
simply set -a in /bin/sh.  This marks all vars for export.
To list exported variables,  simply enter  'export'
To list exported variables with their values,  sh -c set

For non-exported variables,  I guess you'd have to work a little.

--
Dan Mercer                                            ClearSystems, Inc
Reply To:  damercer@mmm.com                           "The Mad Pedant"
======================================================================
All opinions expressed are my own and do not reflect the opinions of
my employer or my employer's clients,  in particular 3M Company.
All advice or software offered or presented is provided As Is with no
warranty either expressed or implied.  Follow at your own risk.
Objects in the mirror are closer than they appear.