From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 237 invoked by alias); 24 Dec 2016 01:29:59 -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: 22270 Received: (qmail 21199 invoked from network); 24 Dec 2016 01:29:59 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f175.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.175):SA:0(-0.5/5.0):. Processed in 1.875146 secs); 24 Dec 2016 01:29:59 -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=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: shirishag75@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.175 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ZAZeO3SylFKD6xdpHtRkPhegbCyPpXKE0YS4CqXTjII=; b=PNIJzDwjLZFkmsaVNcNE+wS77Rq2A0GZGSGZo4sIMwcJznx2z1TINr3LoQYZlTCI7o 7SkQR1kTV5uh1moXY7ETp9Sz5S0kywy1xiQCiyQf1C4rZXkvNA4dSP++l7KCr3cE2sGi ql2AHlJuKZ4gxPHki5Okr7/sLXsSpjDbaZV/aPxQJ6Ad0KyzF1DG09BEjVFrU2OEOwfy 8tOCBvAOMIWZe/QFO/+UL4eQ+cHgvlAHDaNLW3EzCaQpV4pmVmQQdLBPWNhJ2Vai3KLQ 9+dPT0qIiKfipdkZRXJT8bIQp9Qa+OffK2tFoFroTwcE72YjvEnz14JlUXBOQSvPMujY Vmrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ZAZeO3SylFKD6xdpHtRkPhegbCyPpXKE0YS4CqXTjII=; b=qf6yL0HVSyyHt5RKUl7dS9mIEf/dCQh0ZARZiqA4JO6rvocD3tZttuEYOHRcakhTJF Kiijfl1re+6ZmHIRJLJtiWtEHNqKB7Lp7Z0aLT5PsHQTqK/fn5zixdkl+mS5dpiC/ZIT +CzSQWk73R96RRxHoetmmLe2GSbkPu6dZxe8h43pEx4kxMa5vR8IwuqzRvsG0w8++MMz JW0+Uwqw8ATUl45Gwj6JQzZLqZoYe9yw61yMR/IAoO4jOtp1+ECE5o2UC9xdMNzm3+1f JCUSu/SvurIGUzj+8JeFfG2sTjdmA5ZTbiX5pJYT+W7YwjMUFKfR4YAi7DEhKNQ6Occ3 UsQA== X-Gm-Message-State: AIkVDXIzfKVrTstxLVXcvFFQRAUZVU2iNv26AFQrow0goVZT7Kfb/4g2cPSuB1/JQAcfiTfT2zgtrqW16pF/xA== X-Received: by 10.200.37.101 with SMTP id 34mr16735720qtn.273.1482542675074; Fri, 23 Dec 2016 17:24:35 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <67676a65-f38c-6ba3-5af7-18bde3a2c967@inlv.org> References: <67676a65-f38c-6ba3-5af7-18bde3a2c967@inlv.org> From: =?UTF-8?B?c2hpcmlzaCDgpLbgpL/gpLDgpYDgpLc=?= Date: Sat, 24 Dec 2016 06:54:32 +0530 Message-ID: Subject: Re: Permission denied - putting an aliases.zsh file and it being called from .zshrc To: Martijn Dekker Cc: zsh-users@zsh.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable at bottom :- On 24/12/2016, Martijn Dekker wrote: > Op 23-12-16 om 21:47 schreef shirish =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A5=80= =E0=A4=B7: >> at bottom :- >> >> On 24/12/2016, shirish =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A5=80=E0=A4=B7 wrote: > [...] >>> Trying to source it though get permission denied messages - >>> >>> /home/shirish/.zsh $ source .zshrc >>> .zshrc:1: permission denied: /home/shirish/.zsh/aliases.zsh >>> >>> Why am I get permission denied messages ? >>> >> >> had forgotten to add executable right, now it all works, sorry folks... >> again. > > Actually, 'source' and '.' do not require the file to have executable > permission. The problem is that you were executing the file instead of > sourcing it (which would have caused the aliases to be promptly > forgotten after executing). The line you want in ~/.zshrc is: > > source ~/.zsh/aliases.zsh > > - M. > > That is what I did - /home/shirish/.zsh $ cat .zshrc | grep source source ~/.zsh/aliases.zsh I thought it needed to have executable rights as well, but you are right, they work well without executable rights. --=20 Regards, Shirish Agarwal =E0=A4=B6=E0=A4=BF=E0=A4=B0=E0=A5=80=E0=A4=B7 = =E0=A4=85=E0=A4=97=E0=A5=8D=E0=A4=B0=E0=A4=B5=E0=A4=BE=E0=A4=B2 My quotes in this email licensed under CC 3.0 http://creativecommons.org/licenses/by-nc/3.0/ http://flossexperiences.wordpress.com EB80 462B 08E1 A0DE A73A 2C2F 9F3D C7A4 E1C4 D2D8