This is the mail archive of the cygwin mailing list for the Cygwin 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: alias command in Midnight Commander


Hello,

-------- Original-Nachricht --------
Datum: Wed, 18 Jul 2007 20:16:26 +0200
Von: dIna
An: cygwin@cygwin.com
Betreff: alias command in Midnight Commander

> I'va installed  "mc" version 4.6.1 using cygwin setup.
> In mc alias command doesn't work.
> ex:
> $ alias mytest='echo "test"'
> $ mytest
> /bin/bash: mytest: command not found
> 
> When I quit mc and resent the commands on shell it works.
> Any idea?

The subshell feature of MC is disabled by default on Cygwin - so a new shell is spawned each time you execute a command trough the command line
widget in MC and your changes are immediately lost. Run MC by passing it the -U command line option and it should work as expected.


-- 
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten 
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser

--
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/


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