Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with ESMTP id s4NMPYJC020915 for ; Sat, 24 May 2014 00:25:36 +0200 Received: from relay2.uni-heidelberg.de ([129.206.210.211]) by mx-ha.gmx.net (mxgmx009) with ESMTPS (Nemesis) id 0MGnT7-1WaXm53Mzh-00DbXR for ; Sat, 24 May 2014 00:25:29 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4NMMQNb009927 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 24 May 2014 00:22:27 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4NM13Hj008473; Sat, 24 May 2014 00:22:26 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 11050414 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Sat, 24 May 2014 00:22:26 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4NMMQmG010480 for ; Sat, 24 May 2014 00:22:26 +0200 Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3lp0077.outbound.protection.outlook.com [213.199.154.77]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id s4NMMET9009848 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sat, 24 May 2014 00:22:17 +0200 Received: from [192.168.0.3] (80.177.31.128) by AM3PR05MB356.eurprd05.prod.outlook.com (10.242.247.26) with Microsoft SMTP Server (TLS) id 15.0.949.11; Fri, 23 May 2014 22:22:13 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 References: <537E212E.2030607@morningstar2.co.uk> <537E5311.3020302@nag.co.uk> <537E60D1.7010708@morningstar2.co.uk> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [80.177.31.128] X-ClientProxiedBy: AM3PR01CA034.eurprd01.prod.exchangelabs.com (10.141.191.24) To AM3PR05MB356.eurprd05.prod.outlook.com (10.242.247.26) X-Forefront-PRVS: 0220D4B98D X-Forefront-Antispam-Report: SFV:NSPM;SFS:(6009001)(6049001)(428001)(53754006)(24454002)(51704005)(479174003)(189002)(199002)(50466002)(47776003)(20776003)(36756003)(101416001)(64706001)(65806001)(102836001)(79102001)(80316001)(83322001)(19580395003)(80022001)(66066001)(65956001)(64126003)(33656002)(42186004)(76482001)(46102001)(59896001)(23756003)(77982001)(92566001)(92726001)(83072002)(85852003)(74826001)(65816999)(50986999)(76176999)(54356999)(87266999)(87976001)(83506001)(21056001)(81542001)(74502001)(74482001)(81342001)(4396001)(99396002)(31966008)(74662001);DIR:OUT;SFP:;SCL:1;SRVR:AM3PR05MB356;H:[192.168.0.3];FPR:;MLV:sfv;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (: nag.co.uk does not designate permitted sender hosts) X-OriginatorOrg: nag.co.uk Message-ID: <537FCA13.3000700@nag.co.uk> Date: Fri, 23 May 2014 23:22:11 +0100 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: David Carlisle Subject: Re: Reading from the system (pipe input) To: LATEX-L@LISTSERV.UNI-HEIDELBERG.DE In-Reply-To: <537E60D1.7010708@morningstar2.co.uk> Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: Envelope-To: X-GMX-Antispam: 0 (Mail was not recognized as spam); Detail=V3; X-GMX-Antivirus: 0 (no virus found) X-UI-Filterresults: notjunk:1;V01:K0:dpaWRK0KBWk=:0KqY/4GAlmPPzUkTPB2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a3AEDrbtW6aLbLF9rrLVXhpMK9VoUgOC Ec4JQ/xKJeZoNhhQ+drPKHoGv7gPT2GDC+kFvidf44LClWchK5KNiU+XyfyPe+08tXc0z0acD JGxAyCT07F1jE7OIYhwltWvFb6NZnl00J6hT7j1ggeSSkpS5bDf5h1UBD+ziPGEo+YydQ2izs 6HogEFReHaxhEug3+GH+aAy2lI48GsW5qi5a8aRysHTjBLcwxgahLNmQVPAEy/tTcfEX8yj1+ rxQSDXZ5GMoFi0rJ1BZ8mSIF9ROrrC0GuDbehrGKkNmKzGVd0LrrN3wWoOkSqnFV1XRRYz2Dn WulwNn/CxREb+PrLzxmIzYemrzFOj/AekcFbjEDSiO9cFT9OkoBiNcKZljiwhwxlys7qRWqDh LJZYEaizELqNqphQTbHXeUc5aQG+78ourhLhj2Fvq9Na0xCVwdc9oBwJUeyA1oMkjRoStbbYl Ixd217oB6qZkKvcmsyOfQGIgAwkco7mfqNQG/yu9z X-UI-Loop:V01:XMGMjFOB49Q=:WwUZZGlHOMNmtzhgEJc72NQmmF1VuVlUN601h7+sip4= Status: R X-Status: X-Keywords: X-UID: 7446 On 22/05/2014 21:40, Joseph Wright wrote: > On 22/05/2014 20:42, David Carlisle wrote: >> On 22/05/2014 17:09, Joseph Wright wrote: >>> Hello all, >>> >>> Currently, we have \ior_open:Nn for reading from a file, but no defined >>> interface for using the 'pipe' shell escape provided by pdfTeX. As we >>> forbid spaces in file names, >> why do we do that? Spaces in filenames always seem like an abomination >> to me. >> But that seems to be a relic on the 1970s I've noticed that people who >> started using >> computers this century don't seem to think anything of using a >> descriptive phrase >> as a filename... > The logic here was that, at least as I understand it, there are some > places where you can't just 'wrap up spaces' and have them work. In > particular, there are some comments about dvips and included graphics > which suggest that space behaviour is hard-coded in that case and can't > be changed. (MiKTeX also does some 'interesting' things with BibTeX > input names containing spaces.) I may have this wrong: can other more > knowledgeable people comment? > > This can of course be changes if required. issues with existing implementations aside.... >> Shouldn't we just allow spaces (and leading | or any other system >> dependent special >> syntax) just surrounding any user supplied name by " " to keep it together? > Space behaviour notwithstanding, I think the point here is that the pipe > input approach is sufficiently different from a 'real' file to deserve a > separate interface. My instinct here is still that the pipe interface being exposed as a file is a feature that should be preserved rather than hidden. At the bottom programming layer it probably seems natural to have separate functions for accessing files or for invoking commands, but if you separate them you need to duplicate the entire stack all the way up to the document level, all file reading commands would need to be duplicated or have some way of accessing the pipe functionality. In 2e you can do \documentclass{article} \begin{document} \input{"|zcat foo.tex.gz"} \end{document} to input a compressed file (and zcat could be replaced by a database query or wget to do web request or whatever. You can do same with \include and \InputIfFileExists and... The easiest way to ensure that all top level file reading can access pipes (if enabled) as well as files is to not distinguish them and just treat them as files. The syntax for a filename is explicitly system dependent in anycase and this is not really so different (which is how come it came to be hooked into the \input syntax in the first place). David