| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Date: | Thu, 15 Dec 2005 20:04:52 -0500 (EST) |
| From: | Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu> |
| Reply-To: | cygwin AT cygwin DOT com |
| To: | Shankar Unni <shankarunni AT netscape DOT net> |
| cc: | cygwin AT cygwin DOT com |
| Subject: | Re: Switching Default Text Type |
| In-Reply-To: | <dnt0qv$bnm$1@sea.gmane.org> |
| Message-ID: | <Pine.GSO.4.63.0512152003270.25183@slinky.cs.nyu.edu> |
| References: | <43A1E9E5 DOT 4080305 AT student DOT lu DOT se> <dnt0qv$bnm$1 AT sea DOT gmane DOT org> |
| MIME-Version: | 1.0 |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
On Thu, 15 Dec 2005, Shankar Unni wrote:
> Lennart Borgman wrote:
> > What is the minimum sequence of operations needed to switch default
> > text type in Cygwin?
>
> mount -m > commands.sh
>
> # edit commands.sh, and change -t to -b or vice versa
>
> sh commands.sh
Or, in one shot:
Text->Binary:
eval "`mount -m | sed '/ -s /s/ -t / -b /'`"
Binary->Text:
eval "`mount -m | sed '/X11/!{/ -s /s/ -b / -t /}'`"
(See <http://cygwin.com/ml/cygwin/2003-07/msg00124.html>).
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |