From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: luomat@peak.org, zsh-users@math.gatech.edu
Subject: Re: NULLCMD
Date: Fri, 11 Jul 1997 00:27:57 -0700 [thread overview]
Message-ID: <970711002757.ZM20458@candle.brasslantern.com> (raw)
In-Reply-To: <199707110445.AAA01469@kira.peak.org>
On Jul 11, 12:45am, Timothy Luoma wrote:
} Subject: NULLCMD
}
} I don't seem to understand the NULLCMD function.
It's what gets executed when you redirect output from nowhere, e.g.
zsh% > /some/file
is equivalent to
zsh% $NULLCMD > /some/file
Conversely, READNULLCMD is what gets executed when you redirect input to
nowhere; e.g.
zsh% < /some/file
is equivalent to
zsh% $READNULLCMD < /some/file
Here's a way to fill your disk with foo:
zsh% echo foo > foo
zsh% >>foo <foo
} is there a way to use the NULLCMD feature so that if I drop a pathname it
} will know that I want to move that file to /Some/Dir/Somewhere?
No.
You'd have to start a loop like this:
zsh% while read name; do mv $name /Some/Dir/Somewhere; done
Then you drag, drop, and hit return, until you've moved all the files;
and when done, you type ctrl-D to terminate the loop.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
next prev parent reply other threads:[~1997-07-11 8:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-11 4:45 NULLCMD Timothy Luoma
1997-07-11 7:27 ` Bart Schaefer [this message]
1997-07-11 8:00 ` NULLCMD Hrvoje Niksic
1997-07-11 9:21 ` NULLCMD Geoff Wing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=970711002757.ZM20458@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=luomat@peak.org \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).