This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sed command garbled when generating macro_list on Solaris


Andreas Schwab <schwab@suse.de> writes:

> Paul Eggert <eggert@CS.UCLA.EDU> writes:
>> -	  sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p ; \
>> -		s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
>> +	  sed -n 's/^#define \([^_][a-zA-Z0-9_]*\).*/\1/p; s/^#define \(_[^_A-Z][a-zA-Z0-9_]*\).*/\1/p' | \
>
> Would it be portable to use multiple -e options?  That way the long line
> could be avoided.

Yes, as far as I know.  (I used the long line only to avoid nitpicking
questions about whether -e is portable.  :-)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]