From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2796 invoked by alias); 11 May 2018 12:30:58 -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: List-Unsubscribe: X-Seq: 23391 Received: (qmail 17677 invoked by uid 1010); 11 May 2018 12:30:58 -0000 X-Qmail-Scanner-Diagnostics: from mail-ua0-f180.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.217.180):SA:0(-1.9/5.0):. Processed in 2.068265 secs); 11 May 2018 12:30:58 -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, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: xtekhne@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=vGY96fq8eOEPc7XEZ32ECcyb3IfaeYzw+5hW8VuP478=; b=QqJLzQdO8D3Gp9/zZN66Op8cZQ2dY+/FyrY9fKBU6I0817xeAiJMQHsozw48VktQnA QPNSNJh6tFpEaeI2lzTnNUlM+2owRJ5FQErtRsBW0qCHSENmCQlY9YfCWtFXjSC8VMY1 hu530WGTmwyG/hHVJZI16fs73T3qcto2cnc5v1vPkFsp6cpNo/Nq2GiI1VLfnvPRT8aN igHO/5b8RxFzYY5+0D6nDVW9bwrFioMWHC7vtCAIbI/p+8M2rZBpuBHcrP31wQGivHVS Sp6Zs6goS5Kwdnq3THfthSw4EM3GgUvoPkq5TNHDAcZR9epcPvTCldb+lH9fmqRSp50q JP3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=vGY96fq8eOEPc7XEZ32ECcyb3IfaeYzw+5hW8VuP478=; b=a5MFe8RrL1GbnJO9yB8fIWAzZZB0ubzwYsozygi4k7FwSCaqXXJXktI64rRpB/JV40 hzU4w+wePgARpCIuYlFhLzPFnqVcRzn+JE5q7/tGRDhmFQKJtdgvOXYYCxCPUNCcRbBv Z43maEOaloIv7K8KOvB6Wo/gl7hv4YmKFPyj5sfKLN9tzk1dLCDhW1CwLeHZcfONCFV1 c5u5t8QvVOVGBl4VBqV0Nw5NV1KtrJZ3GJTn/Sd38fN+xkR5qnGh/vssSIaKmZq5fAAd AXTvJFMl7mLVCcgipB7LB3H8agqYuXkkb+tSaarmdXny7fh/ouMD0ojXtZw+FEZ0wIql zrrw== X-Gm-Message-State: ALKqPwdIKicVUFu5rvscsStqwdBtVxcujRw3svHi6w4kVbZSFhpZeWEO Z7NqOXauDa/BcZvNjTEUus5f7ib6WpVF59D+dp4= X-Google-Smtp-Source: AB8JxZrwoPxJRQAV1Yg2sLzLEGnsbh0kT9FCMRSsxWH5D8RdCmjHLhTWjhbaf/kw8ZC3fcO/gfg1mfKR1C5PCt7fVvM= X-Received: by 2002:a9f:264f:: with SMTP id 73-v6mr1189106uag.41.1526041853093; Fri, 11 May 2018 05:30:53 -0700 (PDT) MIME-Version: 1.0 Sender: paolo.m.pumilia.gnarini@gmail.com X-Google-Sender-Delegation: paolo.m.pumilia.gnarini@gmail.com In-Reply-To: <20180511123134.4108dacb@camnpupstephen.cam.scsc.local> References: <20180511123134.4108dacb@camnpupstephen.cam.scsc.local> From: "Pol (Admin)" Date: Fri, 11 May 2018 14:30:32 +0200 X-Google-Sender-Auth: I6PAYpU3VlFYYijws8FE8l4yhLA Message-ID: Subject: Re: execution in zshrc To: Peter Stephenson Cc: zsh-users@zsh.org, Paolo Pumilia Content-Type: text/plain; charset="UTF-8" That works, thank you, but something is still wrong in my scripts, My ubuntu_system function cannot be found at the start, (yet, noo problem as my zshrc is sourced from terminal) Here enclosed my function thank you paolo -- my zsh function - ubuntu_system () { alias sepg='apt-cache search --names-only ' alias sapg='apt-cache search ' alias saipg='apt-cache search --names-only --installed ' echo "ubuntu system aliases loaded" } --- end On Fri, May 11, 2018 at 1:31 PM, Peter Stephenson wrote: > On Fri, 11 May 2018 12:07:54 +0200 > "Pol (Admin)" wrote: >> Here enclosed, my script from my zshrc file, to select current running >> linux udistribtion. >> At start (e.g. starting a konsole session) it cannot match any linux >> brand (although 'uname -v' works). therefore exiting with 'unknown >> distribution'. >> Yet, sourcing /etc/zshrc at terminal prompt, the correct runnig >> linux distibution is found. >> >> Any hints to fix my script? > > That means some option is being set in /etc/zshrc that affects the > running of the code. > > It looks like this is probably > > setopt extendedglob > > If you put that before the code chunk it should work. > > pws