From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1698 invoked by alias); 21 Aug 2017 08:13:43 -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: 22844 Received: (qmail 16688 invoked by uid 1010); 21 Aug 2017 08:13:42 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr0-f182.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.128.182):SA:0(-3.2/5.0):. Processed in 1.51116 secs); 21 Aug 2017 08:13:42 -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=-3.2 required=5.0 tests=AC_DIV_BONANZA,BAYES_00, FREEMAIL_FROM,FREEMAIL_REPLYTO,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_SORBS_SPAM,SPF_PASS,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: linux.tech.guy@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:reply-to:from:date:message-id:subject:to; bh=nqb/NdTn4CmZW+vOdpUBFYSKCuXbwH7lj5gh26ntrOk=; b=HO9nAv+p2zXkol/yL9QV258w+8AHJT7ql5Twq+Z1Doi3Jwl7JUJAk/nonw9lrL3rhc oNATmTnPljywzYy8LcMDDtJUHAlGDMigyF3IKezblJZit0eYlSAVSZJlgegNN3tUOqC5 cTfK8gkWykJgI6KmnHEM0+5OtXHME8MLtgemmrUBp3olzx5SMJrl2ahvqTu1VhpuqB/z KkXSLt5+d+37Yzuh5JZzfwgt7bWeVqGbWz2EQ1xsiscy21Y6C2nvhfuXYc96I2UaiVK1 gwLgTuQKWXK6PaX0qUr7IHNlflN87ceJBybyBw49JwMtXsO3Uh3ubq0QomjQuSdJ70jB +rLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=nqb/NdTn4CmZW+vOdpUBFYSKCuXbwH7lj5gh26ntrOk=; b=MhTxrZDZjkc4NihGpr1ozssBKWSQTFTR3VO9hCvnQvlf38HjHXOpX7ghDHa9NvJoE5 6f25OjdOCS5zbEs68bhYLhbNRNyYUJfyUDGtIgUiXraADneGlxmvUJQN41tz+HBLvmHC /0U//iHURWzDHTHaMFy2d7zP7kHcWmQdbszfSMFqwea0hwdvBDabpXxJ3FxY+ODa2k/j SmeXYlhqYGImKvypFea8ap+phCg9GjKJ4SU0VifZTbJWh3FJFHiwv6bqjYaDhPd3WD8f 2FdPiDE+Bsz29ZdhWw/kOaZ7Mu2Cj3YX2NKlhHuJPI5dSMLA3B2Ld9T8agV9Neq6nknq 1/jg== X-Gm-Message-State: AHYfb5gErjV4IuctuLCC/8eB+lWL57rwCy35y1ItGZKTTK05Rv/ELdZd PjUpDKSZZLJyi2Obyx7X2t8ns5sbcjZb X-Received: by 10.80.135.153 with SMTP id a25mr11454595eda.90.1503303217007; Mon, 21 Aug 2017 01:13:37 -0700 (PDT) MIME-Version: 1.0 Reply-To: linuxtechguy@gmail.com From: Jim Date: Mon, 21 Aug 2017 03:13:36 -0500 Message-ID: Subject: Only shell that doesn't return "shell name". To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="f403045c19e43d50f605573f0e17" --f403045c19e43d50f605573f0e17 Content-Type: text/plain; charset="UTF-8" Hi all, I was using the following one line script to check out how the "."(dot) command worked in different shells. echo "\$0: $0" The file was not executable( -rw-r--r-- ) and to be consistent I always used the same command. . ./ The shells tested along with output of script: ash -- $0: ash bash -- $0: bash busybox sh -- $0: sh dash -- $0: dash ksh -- $0: ksh mksh -- $0: mksh sh -- $0: sh My distribution, by default, links sh to bash sh -- $0: sh With sh linked to zsh zsh -- $0: ./filename Not that I mind that zsh returns the filename, it is just inconsistent with all other shells I tested and the way zsh works when emulating sh. So far searches have not returned any information that tells me if this should be the normal behaviour. Q: Is this the way zsh should behave? Thanks, Jim --f403045c19e43d50f605573f0e17--