[ANNOUNCEMENT] Updated: ash-20000627

Chris Faylor cgf@cygnus.com
Thu Jun 29 08:58:00 GMT 2000


On Thu, Jun 29, 2000 at 02:47:55PM +0200, Bernard Dautrevaux wrote:
>> Dave Arnold wrote:
>> > What is ASH? Is it the same as BASH? I opened a bash shell 
>> on my win95
>> > install of cygwin and tried to find ash and couldn't find 
>> it anywhere?
>> > 
>> > /dAVe
>>>> No, Bash and Ash are two seperate shells. Bash could be described as
>> Ash on steroids. It is bigger and more complex, while Ash is small
>> and fast. Two different outlooks on the same kind of program.
>>>> > 
>> > >I've installed a new version of ash in 
>> sourceware:/cygwin/latest/ash.
>> > >
>> > >Changes:
>> > >
>> > >- When evaluating stdout of backquote commands, it's read in
>> > > textmode to handle native windows commands in backquotes as
>> > > well.
>>>> I have not made this change to Bash, as this is controlled by 
>> the CYGWIN
>> environment variable setting to binmode to keep the carriage 
>> returns or
>> to nobinmode to remove them. This is of course an over-simplification
>> of the actual reason, but I hope I have gotten my point across. If
>> you, the user, want the stripping of the carriage returns, then it is
>> YOUR responsibility to set the variable accordingly. See Earnie Boyd's
>> site for more information, as Earnie has a much better way with words
>> than I do.
>>>> Comments, flames, chocolate-chip cookies are all appreciated.
>> ^^^^^^^^
>>Just one: back-quote substitution is used in TEXT context: it replace some
>TEXT by some other TEXT; arguing it may be BINARY data is quite obscure to
>me :-)
>>For me Corinna is perfectly correct by reading the output from the command
>substitution in text mode regardless of the CYGWIN setting.

I agree with this. Obviously, we could have come to the same conclusion with
ash. It was also controlled by CYGWIN=binmode but it doesn't make any sense
to me that back quoted text should ever have a CR in it.
I think that bash should also use textmode in this case.
cgf
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /