bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compgen kills shell


From: Chet Ramey
Subject: Re: compgen kills shell
Date: Wed, 27 Dec 2000 12:48:33 -0500

> This dumps core and kills the shell, however, if you filter the diff 
> through an equivalent sed command it doesn't. Hmmmm.....

I can't reproduce it with my current development version.
> 
> compgen -W "$( diff <( compgen -A variable ) <( compgen -A export )\
> | awk '{ print $2 }' )"

Since the lists are sorted, wouldn't `cmp' be an easier way to do this
instead of diff/awk?

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]