From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49327 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: mtxrun --noquotes on windows Date: Fri, 10 Apr 2009 15:49:22 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239393051 2381 80.91.229.12 (10 Apr 2009 19:50:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2009 19:50:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Apr 10 21:52:10 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 1LsMla-0004Ag-Dy for gctc-ntg-context-518@m.gmane.org; Fri, 10 Apr 2009 21:51:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46B1A1FB14; Fri, 10 Apr 2009 21:50:31 +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 09222-02-4; Fri, 10 Apr 2009 21:49:55 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 63DA41FADC; Fri, 10 Apr 2009 21:49:55 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 693C31FADC for ; Fri, 10 Apr 2009 21:49:53 +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 09222-02-3 for ; Fri, 10 Apr 2009 21:49:46 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 55FBE1FADB for ; Fri, 10 Apr 2009 21:49:46 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.93.161]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3AJngo4000762 for ; Fri, 10 Apr 2009 21:49:43 +0200 Original-Received: FROM dhcp128036151110.central.yale.edu (dhcp128036151110.central.yale.edu [128.36.151.110]) BY tombraider.mr.itd.umich.edu ID 49DFA2D4.EA680.16932 ; 10 Apr 2009 15:49:41 -0400 In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.93.161; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 207143010 - 34c208de4280 - 20090410 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 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:49327 Archived-At: 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 ___________________________________________________________________________________