From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49331 Path: news.gmane.org!not-for-mail From: Andy Wong Newsgroups: gmane.comp.tex.context Subject: Re: mtxrun --noquotes on windows Date: Fri, 10 Apr 2009 15:20:17 -0500 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1264064610==" X-Trace: ger.gmane.org 1239394891 7458 80.91.229.12 (10 Apr 2009 20:21:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 20:21:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 10 22:22:50 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LsNF9-00056Q-TA for gctc-ntg-context-518@m.gmane.org; Fri, 10 Apr 2009 22:22:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0BE31FBA8; Fri, 10 Apr 2009 22:21:02 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28833-05; Fri, 10 Apr 2009 22:20:30 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C6A6A1FB39; Fri, 10 Apr 2009 22:20:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DFAF11FB39 for ; Fri, 10 Apr 2009 22:20:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00597-01-5 for ; Fri, 10 Apr 2009 22:20:19 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id B33A71FB1D for ; Fri, 10 Apr 2009 22:20:19 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.144]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3AKKIvk001951 for ; Fri, 10 Apr 2009 22:20:18 +0200 Original-Received: by qw-out-1920.google.com with SMTP id 9so859800qwj.38 for ; Fri, 10 Apr 2009 13:20:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=OtWtUNwtKZazWUB2F+GumlGpqpycAyI2CGO5n8XFGvA=; b=Wpi4IoMC4K5nLSxWsiGjCxklk16MeUY3rLHb+8Q4WjeCd7fXuuVCr4OsrOSRfJboS/ 9sP9PuhUyRLXoI568FPO/vE0kqMp4LNiVVdmplDFYAVRtmch/PF95bYbvuiHaW2LfRBd U95/L9Uq6BZPRWeNvhehJJSOAZBtHKD4pTncE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=aM3jW2aMxI4lHA9XI3RqPn6RZef+58sFCc86jF5WkdXmXfW3QONaCWbK1+IdFJgRxK kNxlKsESufwCQor22yvmI1cwGqVYOeQknwahhDRFtxkR2HLtQoAXL2mhpCEpIa87bcbO 8qgr59zjJAAMvwRFXvtq8wqyq8itweRpKIEcg= Original-Received: by 10.229.96.9 with SMTP id f9mr703865qcn.78.1239394817595; Fri, 10 Apr 2009 13:20:17 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.92.144; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 207149271 - 028ca0c97f20 - 20090410 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49331 Archived-At: --===============1264064610== Content-Type: multipart/alternative; boundary=00163642719ed6dbe704673917e9 --00163642719ed6dbe704673917e9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Yes, if leave a space between the last two quotes, mtx output seems ok. MTXrun | MTXrun | executing: vim -u NONE -c "set tabstop=8" "test.tex" MTXrun | But it still cause vim open two file named "tabstop=8" and "test.tex" to edit. So it seems vim treat tabstop=8 as a file? that still a quotes problem, right? I also test if there no space in quoted arguments, such as mtxrun --noquotes bin:vim "-u NONE -c \"help\" \"test.tex\" " This time vim will open the "test.tex" and help window as expected. If any command with space in -c parameter, vim can not correct executed. manually execute the vim command: vim -u NONE -c "set tabstop=8" "test.tex" vim open the "test.tex" only to edit as expected. Andy On Fri, Apr 10, 2009 at 2:49 PM, Aditya Mahajan wrote: > On Fri, 10 Apr 2009, Andy Wong wrote: > > I think I may not write it clear in my previous email. I run the command as >> >> mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=8\" \"test.tex\"" >> > > If you quote the filename, then it should be > mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=8\" \"test.tex\" " > > Notice the space before the last quote. This will open two files test.tex > and "", but that it is ok. The last file is ignored by t-vim. > > which got the mtxrun output has spurious " before test.tex. if omit the \" >> around the test.tex, like this, >> >> mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=8\" test.tex" >> >> there are no spurious " in mtxrun output. >> > > So it is not mtxrun's fault. > > However, both will make vim open a >> new file named "tabset=8" >> > > You mean tabstop=8? > > and the test.tex to be edited. That is the >> problem. I guess under linux this command should open vim to edit the >> test.tex only instead. >> > > If vim is passed the correct command, I do not see why it should not > execute it in the same way in windows. Try one more thing. Run > > mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=8\" \"test.tex\" " > > mtxrun should report that it is executing > > vim -u NONE -c "set tabstop=8" "test.tex" > > Execute the above command manually on the terminal. Do you get the same > result in both cases? > > Aditya > > > > > On Fri, Apr 10, 2009 at 1:40 PM, Aditya Mahajan wrote: >> >> Hi, >>> >>> It seems that mtxrun --noquotes behaves differently on windows and linux. >>> Can someone on windows (who has vim) check the following. Run >>> >>> mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=8\" test.tex" >>> >>> You will enter in vim. Press :qa! to exit vim. What does the output on >>> the >>> terminal say? On my linux machine, I get >>> >>> MTXrun | executing: vim -u NONE -c "set tabstop=8" test.tex >>> >>> Andy Wong tested it on windows and he gets >>> >>> MTXrun | executing: vim -u NONE -c "set tabstop=8" "test.tex >>> >>> Notice the spurious " before test.tex. This causes t-vim to fail on >>> windows. Do others on windows get the same behavour? I do not see a >>> reason >>> why mtxrun should behave differently on linux and windows. >>> >>> Thanks, >>> Aditya >>> >>> >>> >>> ___________________________________________________________________________________ >>> If your question is of interest to others as well, please add an entry to >>> the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> http://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >>> archive : https://foundry.supelec.fr/projects/contextrev/ >>> wiki : http://contextgarden.net >>> >>> >>> ___________________________________________________________________________________ >>> >>> >> > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --00163642719ed6dbe704673917e9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Yes, if leave a space between the last two quotes, mtx output seems ok= .
=A0
MTXrun |
MTXrun | executing: vim -u NONE -c "set tabstop=3D8&q= uot; "test.tex"
MTXrun |
But it still cause vim open=A0two file named "tabstop=3D8" a= nd "test.tex" to edit. So it seems=A0vim treat tabstop=3D8 as a f= ile? that still a quotes problem, right?=A0I also test if there no space in= =A0quoted arguments,=A0such=A0as=A0
=A0
mtxrun --noquotes bin:vim "-u NONE -c \"help\"=A0\"= ;test.tex\" "
=A0
This time vim will open the "test.tex" and =A0help window as= expected. If any command with space in -c parameter, vim can not correct e= xecuted.
=A0
manually execute the vim command:
=A0
vim -u NONE -c "set tabstop=3D8" "test.tex"
=A0
vim open the "test.tex" only to edit as expected.
Andy
On Fri, Apr 10, 2009 at 2:49 PM, Aditya Mahajan = <adityam@umich.ed= u> wrote:
On Fri, 10 Apr 2009, Andy Wong wrote:

I think I may not write it clear= in my previous email. I run the command as

mtxrun --noquotes bin:vi= m "-u NONE -c \"set tabstop=3D8\" \"test.tex\"&quo= t;

If you quote the filename, then it should be=20
=A0
mtxrun --noquotes bin:vim "-u N= ONE -c \"set tabstop=3D8\" \"test.tex\" "

<= /div>Notice the space before the last quote. This will open two files test.= tex and "", but that it is ok. The last file is ignored by t-vim.= =20


which got the mtxrun output has = spurious " before test.tex. if omit the \"
around the test.tex= , like this,

mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=3D8\"= ; test.tex"

there are no spurious " in mtxrun output.
<= /blockquote>
So it is not mtxrun's fault.=20


However, both will make vim open= a
new file named "tabset=3D8"

You m= ean tabstop=3D8?

and the test.tex to be edited. T= hat is the
problem. I guess under linux this command should open vim to = edit the
test.tex only instead.

If vim is passed the corre= ct command, I do not see why it should not execute it in the same way in wi= ndows. Try one more thing. Run

mtxrun --noquotes bin:vim "-u NO= NE -c \"set tabstop=3D8\" \"test.tex\" "

mtxrun should report that it is executing=20


vim -u NONE -c "set tabstop=3D8" "= test.tex"

Execute the above command manually on the termi= nal. Do you get the same result in both cases?
<= br> Aditya=20




On Fri, Apr 10, 2009 at 1:40 PM,= Aditya Mahajan <= adityam@umich.edu> wrote:

Hi,

It seems that mtxrun = --noquotes behaves differently on windows and linux.
Can someone on wind= ows (who has vim) check the following. Run

mtxrun --noquotes bin:vim "-u NONE -c \"set tabstop=3D8\"= ; test.tex"

You will enter in vim. Press :qa! to exit vim. What= does the output on the
terminal say? On my linux machine, I get

MTXrun | executing: vim -u NONE -c "set tabstop=3D8" test.tex
=
Andy Wong tested it on windows and he gets

MTXrun | executing: v= im -u NONE -c "set tabstop=3D8" "test.tex

Notice the = spurious " before test.tex. This causes t-vim to fail on
windows. Do others on windows get the same behavour? I do not see a reason<= br>why mtxrun should behave differently on linux and windows.

Thanks= ,
Aditya


____________________________________________________= _______________________________
If your question is of interest to others as well, please add an entry tothe Wiki!

maillist : ntg-context@ntg.nl /
http://www.ntg.nl/mailman/listinf= o/ntg-context
webpage =A0: http:/= /www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: https://foundry.supelec.fr/= projects/contextrev/
wiki =A0 =A0 : http= ://contextgarden.net

___________________________________________= ________________________________________


________________________________________________________________________= ___________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext
webpage =A0: http:/= /www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: https://foundry.supelec.fr/= projects/contextrev/
wiki =A0 =A0 : http= ://contextgarden.net
_______________________________________________= ____________________________________

--00163642719ed6dbe704673917e9-- --===============1264064610== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1264064610==--