[mdlug] UNIX tips: Learn 10 good UNIX usage habits

Aaron Kulkis akulkis3 at hotpop.com
Thu Mar 13 03:34:43 EDT 2008


Raymond McLaughlin wrote:
> Aaron Kulkis wrote:
>> Raymond McLaughlin wrote:
> 
>>> In this vein, this command:
>>>   w3m mdlug.org/contacts/president/scripts+scraps/home/.bashrc
>>> will send the file to standard output, but
>>>   w3m mdlug.org/contacts/president/scripts+scraps/home/.bashrc |source -
>>> will not source this stdout.
>> Can source actually accept input on stdin?
> 
> Maybe not.
> 
>> (file redirection ( < ) and piped data both show up on stdin).
> 
> Unless they are redirected, or piped, to anothe command. But source
> doesn't seem to work that way.

$ TMPFILE=/tmp/$$; w3m \
mdlug.org/contacts/president/scripts+scraps/home/.bashrc \
  > ${TMPFILE} &&  source ${TMPFILE}; rm ${TMPFILE}






More information about the mdlug mailing list