Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Only shell that doesn't return "shell name".
- X-seq: zsh-users 22844
- From: Jim <linux.tech.guy@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Only shell that doesn't return "shell name".
- Date: Mon, 21 Aug 2017 03:13:36 -0500
- 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==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Reply-to: linuxtechguy@xxxxxxxxx
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.
. ./<filename>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author