bugGNU nano - Bugs: bug #32077, "Redirection is not...


bug #32077: "Redirection is not supported" on win32

Submitted by:  Lubomir I. Ivanov <lubomir_ivanov>
Submitted on:  Sat Jan 8 11:49:18 2011  
Severity: 3 - NormalStatus: Need Info
Assigned to: NoneOpen/Closed: Closed

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


(Jump to the original submission Jump to the original submission)

Sat Jan 9 16:48:20 2016, comment #8:

Closing -- the 2.2.x series is no longer supported.

Benno Schulenberg <bens>
Project Administrator
Wed Feb 26 13:19:04 2014, comment #7:

I have tested with nano v2.25 both outside and inside an uptodate cygwin install - I neo longer get this warning message.

TERM is not set in the environment outside of cygwin.

Omega Weapon <omegaphil>
Sun Feb 23 13:06:59 2014, comment #6:

As mentioned in bug #35214, it might help to set %TERM% to "cygwin". Can you confirm?

Benno Schulenberg <bens>
Project Administrator
Wed Jul 18 13:23:37 2012, comment #5:

For others like me using mintty and reaching here via Google:

If you are using nano under the Git For Windows environment and mintty, you will get this redirection error. mintty is not a proper tty, and implements stdin/out with pipes (which I assume causes this issue) - see http://jpsoft.com/blogs/2012/03/windows-console-replacements-part-1-take-command-and-mintty/

Omega Weapon <omegaphil>
Mon Jan 10 16:08:56 2011, comment #4:


Lubomir I. Ivanov <lubomir_ivanov>
Mon Jan 10 16:04:28 2011, comment #3:

i was able to compile 2.2.6 with ncurses-5.7.18 and gcc-3.3.4 under cygwin. the build runs with no problem... apparently this gives a clue that the 'redirection is not supported' issue is probably coming from pdcurses.

here is the 2.2.6 package:

ps: sorry for the spam



Lubomir I. Ivanov <lubomir_ivanov>
Mon Jan 10 15:03:19 2011, comment #2:

i've repacked gnu-nano-2.2.5 from cygwin (dll 1.7.7-1)


the version from cygwin runs ok on this machine.
more information in README.txt



Lubomir I. Ivanov <lubomir_ivanov>
Mon Jan 10 12:00:14 2011, comment #1:

gave it a try on another machine with windows vista sp1 and it seems to work there.

Lubomir I. Ivanov <lubomir_ivanov>
Sat Jan 8 11:49:18 2011, original submission:

i've sent this report previously to Chris Allegretta:

> there seems to be something wrong with all 2.* win32 build of nano on my
> system (windows xp sp2 32bit).
> when i run the nano.exe i get:
> -------------------------------------------------
> Redirection is not supported
> -------------------------------------------------
> it seems that it does not matter where the dll / exe files are installed
> (following the README.txt instructions) ?

bellow is some disassembly debug for the latest nano-2.2.6-win32.

> "nano.exe -h" works and also other cmd line options are responsive
> i've found the "Redirection is not supported" ascii is stored in nano.exe at
> offset 0x00025DD0
> the string is not part of the /src folder (grep)
> the call itself that causes the throw to the output buffer i think is at
> 0x00024DD0 (.exe):
> FF1524134300 CALL DWORD PTR DS:[<&cygwin1._dll_crt0@0>] ;
> cygwin1._dll_crt0@0
> the ascii goes into a register as :
> 00424596 |. C70424 60E8420>MOV DWORD PTR SS:[ESP],nano.0042E860 ;
> ||ASCII 0A,"Redirectio"
> 0042459D |. 894424 0C MOV DWORD PTR SS:[ESP+C],EAX ; ||
> 004245A1 |. B8 1F000000 MOV EAX,1F ; ||
> 004245A6 |. 894424 08 MOV DWORD PTR SS:[ESP+8],EAX ; ||
> 004245AA |. B8 01000000 MOV EAX,1 ; ||
> 004245AF |. 894424 04 MOV DWORD PTR SS:[ESP+4],EAX ; ||
> 004245B3 |. E8 B0250000 CALL <JMP.&cygwin1.fwrite> ;
> |\fwrite
> 004245B8 |. C70424 0100000>MOV DWORD PTR SS:[ESP],1 ; |
> 004245BF |. E8 04270000 CALL <JMP.&cygwin1.exit> ; \exit
> 004245C4 |> A1 C0024300 MOV EAX,DWORD PTR DS:[4302C0] ; |
> 004245C9 |. 890424 MOV DWORD PTR SS:[ESP],EAX ; |
> 004245CC |. E8 C7240000 CALL <JMP.&cygwin1.free> ; \free
> the above begins around static offset:
> 0x00023996
> ---

any idea what the cause for this might be ?


Lubomir I. Ivanov <lubomir_ivanov>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bens (Posted a comment)
  • -unavailable- added by omegaphil (Posted a comment)
  • -unavailable- added by lubomir_ivanov (Submitted the item)
  • -unavailable- added by lubomir_ivanov (nano-comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Jan 9 16:48:20 2016bensOpen/ClosedOpen=>Closed
    Sun Feb 23 13:06:59 2014bensStatusNone=>Need Info
    Sat Jan 8 11:49:18 2011lubomir_ivanovCarbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1