Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Combs  
View profile  
 More options Oct 3 2012, 12:39 am
Newsgroups: gnu.emacs.help
From: dkco...@panix.com (David Combs)
Date: 3 Oct 2012 00:39:30 -0400
Local: Wed, Oct 3 2012 12:39 am
Subject: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
On XP, I've been using cygwin and emacs for some time now.

One thing I have (incorrectly?) noted:

If I do START --> run --> cmd-window, and get that
little white-on-black blackboard-like window, yes
I can run sh, etc, and it all seems to work, even
complicated command-lines.

A problem with that (horrible) method is that:

a: there's no way to "paste" a long command or anything
   else into that window -- you have to type everything
   in *by hand*.  So lots of typos you wouldn't have
   if you could just cut from somewhere and pasted
   into that blackboard-like window.

b: no way to get it to go full-screen.

c: and so on.

But yes, you can at least run a unix command-line,
pipes, `expand me exprs`, etc, all that good
stuff.

----

What would be really NICE would to be able to do
that from *shell*.

But I don't seem able to run the cygwin "sh" or
"tcsh" in *shell*.   I can run cygwin stuff ok,
but not in complicated unix-like commands; it works
for me only if I do it one thing at a time, via
simple commands.

Question: is there a way to run complex command-lines
in *shell*?

If so, how?

thanks!

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Doug Lewan  
View profile  
 More options Oct 3 2012, 7:39 am
Newsgroups: gnu.emacs.help
From: Doug Lewan <do...@shubertticketing.com>
Date: Wed, 3 Oct 2012 11:40:04 +0000
Local: Wed, Oct 3 2012 7:40 am
Subject: RE: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
In both CYGWIN terminal and rxvt terminal I find that the middle mouse button works to paste.

I hope this helps.

,Doug


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 3 2012, 1:08 pm
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Wed, 03 Oct 2012 19:07:36 +0200
Local: Wed, Oct 3 2012 1:07 pm
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?

Right-click the title bar of the cmd window and select Edit->Paste.
That's it!

> b: no way to get it to go full-screen.

Try Alt-Enter.

> c: and so on.

What else?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Combs  
View profile  
 More options Oct 12 2012, 5:11 pm
Newsgroups: gnu.emacs.help
From: dkco...@panix.com (David Combs)
Date: Fri, 12 Oct 2012 21:11:33 +0000 (UTC)
Local: Fri, Oct 12 2012 5:11 pm
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
In article <mailman.10228.1349284104.855.help-gnu-em...@gnu.org>,
Eli Zaretskii  <e...@gnu.org> wrote:

Thanks!

OK, the edit--> paste works.

The alt-enter expands to full screen, but like a magnifying
glass.  Same number of lines.  Of course what you'd like
is a full 60 or so lines.

The enter-->  menu has a greyed-out "copy" -- seems to be
now way to "blue out" (via sweeping the mouse) an area
within that window *to* "copy".  What's the trick for
this one?  

Thanks much!

Question: your use here is separate from using emacs,
yes?

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Combs  
View profile  
 More options Oct 12 2012, 5:16 pm
Newsgroups: gnu.emacs.help
From: dkco...@panix.com (David Combs)
Date: Fri, 12 Oct 2012 21:16:11 +0000 (UTC)
Local: Fri, Oct 12 2012 5:16 pm
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
In article <mailman.10194.1349264371.855.help-gnu-em...@gnu.org>,
Doug Lewan  <do...@shubertticketing.com> wrote:

>In both CYGWIN terminal and rxvt terminal I find that the middle mouse button works to paste.

>I hope this helps.

>,Doug

What are CYGWINI and rxvt terminals, where are they,
and how to run them?

Here is an M-x occur of term in my cygwin/bin (is yours different?):

4 matches for "term" in buffer: bin
    524:  -rw-rw-rw-   1 DKC      root          2167 2009-02-18  koi8rxterm
    968:  -rwxrwxrwx   1 DKC      root          4608 2008-11-06  ppmtoterm.exe
   1216:  -rw-rw-rw-   1 DKC      root          2092 2009-02-18  uxterm
   1276:  -rwxrwxrwx   1 DKC      root        373760 2009-02-18  xterm.exe

Thanks,

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Combs  
View profile  
 More options Oct 12 2012, 5:47 pm
Newsgroups: gnu.emacs.help
From: dkco...@panix.com (David Combs)
Date: Fri, 12 Oct 2012 21:47:19 +0000 (UTC)
Local: Fri, Oct 12 2012 5:47 pm
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
Here's what I *really* want to do:

Use emacs, *shell*, and within that (*shell*),
be able to pretend that I'm on a REAL computer,
and use the full unix/linix command-line parsing stuff,
eg "ls `cat foo.nam`", parens and subjobs, and >>EOF ... EOF,
all that stuff.

All without having to ever resort to the xp "cmd" window --
do it all straight out of the nice full-screen emacs
*shell* display.

Emacs already gives me the fiction that I'm on eg a
sun or linux, but where that falls down is in
*shell* typing in command-lines.

---

I've also tried, in *shell*, running the cygwin
tcsh, but with no success.  (I forget the difficulty
I had, but it was complete, that difficulty.)

---

Something I noticed some time (years?) ago (still true?) was
that cygwin had two versions, new and old (or standard?),
but that the new one's bin had far fewer programs
than did the old one.

My version of cygwin is Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

---------------------- OOPS: CURRENT AVAILABLE CYGWINI IS 1.7:

Just looked at http://cygwin.com/, saw that 1.7 is the
newest thing (I guess mine is pretty ancient), but that
going to it requires lots of changes.  Hmmm.

(Mine is 1.5)

Has everyone switched to 1.7, or are a lots of (smart)
people still using 1.5?

Sure wouldn't want to try to install the new one and
screw up and thus also lose the one I have!

Question: would 1.7 make my *shell* experience
a lot better, given the problems I've listed
above?

THANKS!

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 13 2012, 3:02 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 13 Oct 2012 09:02:01 +0200
Local: Sat, Oct 13 2012 3:02 am
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?

> From: dkco...@panix.com (David Combs)
> Date: Fri, 12 Oct 2012 21:47:19 +0000 (UTC)

> Here's what I *really* want to do:

> Use emacs, *shell*, and within that (*shell*),
> be able to pretend that I'm on a REAL computer,
> and use the full unix/linix command-line parsing stuff,
> eg "ls `cat foo.nam`", parens and subjobs, and >>EOF ... EOF,
> all that stuff.

> All without having to ever resort to the xp "cmd" window --
> do it all straight out of the nice full-screen emacs
> *shell* display.

Did you try "M-x eshell RET"?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 13 2012, 3:29 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 13 Oct 2012 09:29:23 +0200
Local: Sat, Oct 13 2012 3:29 am
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?

> From: dkco...@panix.com (David Combs)
> Date: Fri, 12 Oct 2012 21:11:33 +0000 (UTC)

> OK, the edit--> paste works.

> The alt-enter expands to full screen, but like a magnifying
> glass.  Same number of lines.  Of course what you'd like
> is a full 60 or so lines.

I don't think it supports an arbitrary number of lines, only those
supported by the VGA mode of your video card.  Try setting the cmd
window to 50 lines, and then I'd expect Alt-Enter to give you a
50-line full-screen display.

> The enter-->  menu has a greyed-out "copy" -- seems to be
> now way to "blue out" (via sweeping the mouse) an area
> within that window *to* "copy".  What's the trick for
> this one?  

Edit->Mark, then mark with the mouse.

> Question: your use here is separate from using emacs,
> yes?

The above has nothing to do with Emacs at all, it's all basic Windows
trickery.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Combs  
View profile  
 More options Oct 13 2012, 10:18 am
Newsgroups: gnu.emacs.help
From: dkco...@panix.com (David Combs)
Date: Sat, 13 Oct 2012 14:18:20 +0000 (UTC)
Local: Sat, Oct 13 2012 10:18 am
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
In article <mailman.10880.1350113364.855.help-gnu-em...@gnu.org>,
Eli Zaretskii  <e...@gnu.org> wrote:

>> From: dkco...@panix.com (David Combs)
>> Date: Fri, 12 Oct 2012 21:11:33 +0000 (UTC)

>> OK, the edit--> paste works.

>> The alt-enter expands to full screen, but like a magnifying
>> glass.  Same number of lines.  Of course what you'd like
>> is a full 60 or so lines.

>I don't think it supports an arbitrary number of lines, only those
>supported by the VGA mode of your video card.  Try setting the cmd
>window to 50 lines,

Thanks, but How?

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 13 2012, 11:34 am
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sat, 13 Oct 2012 17:34:01 +0200
Local: Sat, Oct 13 2012 11:34 am
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?

Right-click on the window title bar, select Properties and under
"Layout" set the "Height" value in the "Window Size" group.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oleksandr Gavenko  
View profile  
 More options Oct 28 2012, 7:03 am
Newsgroups: gnu.emacs.help
From: Oleksandr Gavenko <gaven...@gmail.com>
Date: Sun, 28 Oct 2012 13:03:38 +0200
Local: Sun, Oct 28 2012 7:03 am
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
On 2012-10-03, Eli Zaretskii wrote:

> Right-click the title bar of the cmd window and select Edit->Paste.
> That's it!

I recommend instead use mintty from Cygwin (which replacement for rxvt and
standard Cygwin terminal emulator).

It allow paste by Shift+Inc and copy by mouse selection (whole line for double
click).

--
Best regards!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 28 2012, 12:37 pm
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sun, 28 Oct 2012 18:37:15 +0200
Local: Sun, Oct 28 2012 12:37 pm
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?

> From: Oleksandr Gavenko <gaven...@gmail.com>
> Date: Sun, 28 Oct 2012 13:03:38 +0200

> On 2012-10-03, Eli Zaretskii wrote:

> > Right-click the title bar of the cmd window and select Edit->Paste.
> > That's it!

> I recommend instead use mintty from Cygwin (which replacement for rxvt and
> standard Cygwin terminal emulator).

> It allow paste by Shift+Inc and copy by mouse selection (whole line for double
> click).

So does the cmd window, if you set the QuickEdit option.  (Well, no
Shift-Insert is supported, but right-clicking the mouse to paste is no
less convenient.)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oleksandr Gavenko  
View profile  
 More options Oct 28 2012, 2:56 pm
Newsgroups: gnu.emacs.help
From: Oleksandr Gavenko <gaven...@gmail.com>
Date: Sun, 28 Oct 2012 20:56:29 +0200
Local: Sun, Oct 28 2012 2:56 pm
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?
On 2012-10-28, Eli Zaretskii wrote:

Ok.

But most useful things from mintty is custom fonts and switchable background
colour (I definitely like black on white)...

Anyone can get another goodies, just read:

  http://code.google.com/p/mintty/
                Xterm-compatible terminal emulation
                Comprehensive character encoding support, including UTF-8
                256 colours

My ~/.minttyrc:

  ; -*- mode: conf -*-

  ForegroundColour=0,0,0
  BackgroundColour=255,255,255
  CursorColour=165,42,42

  ; Block, Underscore, Line.
  CursorType=Block
  CursorBlinks=yes

  ; Off, Low, Medium, High, Glass (>= Vista only).
  Transparency=Low
  OpaqueWhenFocused=yes

  ; 'Lucida Console' and 'Courier New' are the best fixed width font under Windows.
  Font=Courier New
  BoldAsFont=yes
  FontHeight=10
  AllowBlinking=no

  FontSmoothing=None

  BackspaceSendsBS=no
  ; Enable Ctrl+Ins and Shift+Ins.
  ClipShortcuts=yes
  ; Disable Windows Alt+Space and Alt+Enter shortcuts.
  WindowShortcuts=no
  ; Disable Ctrl+TAB and Ctrl+Shift+TAB shortcuts for use in screen(1).
  SwitchShortcuts=no
  ; Enable font zooming shortcuts Ctrl+plus/minus/zero.
  ZoomShortcuts=yes
  ; Shift, Ctrl, Alt, Off.
  ScrollMod=Shift

  CopyAsRTF=yes

  ; Use mouse copy on select like in X window.
  CopyOnSelect=yes
  ClicksPlaceCursor=no
  RightClickAction=menu

  BellSound=no

  Term=xterm-256color
  Answerback=

  Columns=120
  Rows=40
  Scrollbar=right
  ScrollbackLines=10000
  ConfirmExit=yes

--
Best regards!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eli Zaretskii  
View profile  
 More options Oct 28 2012, 3:29 pm
Newsgroups: gnu.emacs.help
From: Eli Zaretskii <e...@gnu.org>
Date: Sun, 28 Oct 2012 21:28:43 +0200
Local: Sun, Oct 28 2012 3:28 pm
Subject: Re: cygwin -- getting *shell* to parse pipes & other unix cmd-line stuff?

> From: Oleksandr Gavenko <gaven...@gmail.com>
> Date: Sun, 28 Oct 2012 20:56:29 +0200

> But most useful things from mintty is custom fonts and switchable background
> colour (I definitely like black on white)...

Likewise with the cmd window.

Really, can we please stop these plugs?  The OP asked a specific
question, and it wasn't about mintty.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »