bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

install feature-beg: grok - meaning stdin


From: Edward Avis
Subject: install feature-beg: grok - meaning stdin
Date: Fri, 31 Aug 2001 15:42:10 +0100 (BST)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I think it would be useful for install to understand a source filename
of - as 'read from stdin'.  For example, to install a gzipped manual
page:

% gzip <whatever.1 | install -D - /usr/share/man/man1

Certainly this would be more common than wanting to install an actual
file called -.

(Looking at install.c, it's not entirely clear where to make a change
for this.  I don't think it should go in copy.c because reading from
stdin is probably less appropriate for cp, and definitely not meaningful
for mv.  Perhaps the answer is to add a new flag to a struct cp_options,
'If nonzero, understand the filename - to mean stdin'.  If you give me a
clue, I could submit a patch for this feature myself.)

- -- 
Ed Avis <address@hidden>
Finger for PGP key
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7j6JEIMp73jhGogoRAgK2AJ95kgX/ranL0wux3NCrdj7cyNm4TACbB2L/
fx4iru6VcBF7sMf3dHPmeuY=
=xJOs
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]