From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17333 invoked by alias); 11 Jun 2016 17:41:07 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21652 Received: (qmail 12715 invoked from network); 11 Jun 2016 17:41:06 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jUKm2hEjTDZ/rBD0cGWMPXiWpX4WCEbABlz0bE4XCQQ=; b=QAYhFX4jNtSWvhiHRi0RkJ0rnvq3ZHUt3LER6CI6zKkqlX7xbDn6iNXyCwifgA1FFF vVgYl6tkSpcr1Zdj9w8+rFZjZpvhftxSxoRMebsCovAKv2PWaZpc2WEtG/pY8Z/VNG9Y tIuBmmHisdtgYUDqIJoSQWyMbo8hL8G0puutA1O0Y9VfnjQKlCr3ItmwVMGZR5soJgzI XYNHZwNKjtb+HQjq6u8ulMdugchwCJpcw582w6XLaeNBcUzKnMmXmPt1DnRqeRp2QSDS 8kanafk6DYn5v5Xcs6lLoTNBltWS00CO3PGII2+P2391D9ee1etBl228Q4vZ579T3dVe +kFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jUKm2hEjTDZ/rBD0cGWMPXiWpX4WCEbABlz0bE4XCQQ=; b=PhmLGjk5nZw/cESKGH0WodrjT/Yvh54hYQ3/xykOmitEZ5Lc5QGa0N/KHA9wI/Hzs4 hiUVDh1dwUu/esecpTIWQPyML0VP7OeWsKSC425M/376ddCZMKg1b/2ceAnNTi355JSy dBdt+P3KwKe4t9oyZdxZudRG8vjVPRMMJlFQlVCpk6QW+BeWgiENqJhAB1Sa3QGH6xZe 5FP/lQZJ20MKkU7r5DG9Yx2Wtb5HWWiFDT8gDQHAzE1yQvMnr5VdPebuNyHmOybSQ1nu o7oPa2hqy9ppLJqqAIFHTFNdRmC6i6ttqKhmWBAnnpFGne4SQ0GGHqgjQlJ0e3WbO+/z H4ng== X-Gm-Message-State: ALyK8tJrEyEBdKSLcZbA/3We1iwi+FPtQTZ1CE0U1lHU71oq1OdSlA2Zbonxb6RAx92ybBvhBuKSXzE6fI2WdA== X-Received: by 10.55.104.213 with SMTP id d204mr7539411qkc.208.1465666864538; Sat, 11 Jun 2016 10:41:04 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1553481465662840@web1m.yandex.ru> References: <1553481465662840@web1m.yandex.ru> From: Sebastian Gniazdowski Date: Sat, 11 Jun 2016 19:40:45 +0200 Message-ID: Subject: Re: echo "true" > ~/.zshrc from ~/.zshrc To: "Nikolay Aleksandrovich Pavlov (ZyX)" Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 11 June 2016 at 18:34, Nikolay Aleksandrovich Pavlov (ZyX) wrote: > What do you mean by =E2=80=9Clegal=E2=80=9D? This seems like absurd thing to do, I was searching for some reasonable constraints in this, thus the word "legal". > If you do something like this you need to understand what is going on: se= e `man zshmisc`, section =E2=80=9CREDIRECTION=E2=80=9D. Specifically `>>` a= ppends to zshrc, `>` *empties* zshrc and then appends: nearly equivalent is= `rm ~/.zshrc; echo true > ~/.zshrc`. Thanks > I personally would not suggest to *ever* edit zshrc using `echo =E2=80=A6= >[>] ~/.zshrc`: this is a script and using `echo >>` to edit it will over = time turn zshrc into an unorganized junkyard. If you need to do some edits,= take text editor and edit ~/.zshrc, keeping it organized. This is especial= ly needed if you have many aliases which may alter the subsequent code. Thanks for the point about aliases --=20 Best regards, Sebastian Gniazdowski