make

Jon Kettenhofen subs at kexsof.com
Sun Aug 24 14:51:11 MST 2014


Calm down.
try it like
echo >> some new file
ls -l some*
so is the file there?
yes.
Is there an error?
rm some*
echo >>sominex
echo $?
0
so no error.
this will work the same in an embedded script and most commands.

What's easier? to do a simple test like that
or ask a question and wait for a reply in email?
(please don't answer that - it's a rhetorical question)

On 08/24/2014 05:36 PM, Michael Havens wrote:
> I have a question about redirections:
>
>     make>>make.fail 2>&1
>
> tells it make and then to send (>) stderr (2) to stdout (1) and also to
> send stdout that way also (&1). finally all of that gets sent to a file
> named make.fail (>>). Isn't '>>' actually 'append' whereas '>' would
> work just as well so long as the file didn't already exist? If the file
> did exist would I get an error or would the file be overwritten?
> :-)~MIKE~(-:
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss at lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>



More information about the PLUG-discuss mailing list