ZSH(1) General Commands Manual ZSH(1)NAME
zsh - the Z shell
SYNOPSIS
/usr/sfw/bin/zsh
DESCRIPTION
Zsh was originally installed as /usr/bin/zsh, but has been moved to /usr/sfw/bin/zsh to match its status as an External utility. This
means that it is not controlled by Sun, and incompatibilities may be introduced in any release (see attributes(5)).
This manual page is a placeholder for the original; the new manual page can be found in /usr/sfw/share/man. To view the page, specify the
alternate path to the man command on the command line:
man -M /usr/sfw/share/man zsh
or by putting /usr/sfw/share/man in the MANPATH environment variable.
SEE ALSO attributes(5).
June 18, 2003 ZSH(1)
Check Out this Related Man Page
shells(4) File Formats shells(4)NAME
shells - shell database
SYNOPSIS
/etc/shells
DESCRIPTION
The shells file contains a list of the shells on the system. Applications use this file to determine whether a shell is valid. See getuser-
shell(3C). For each shell a single line should be present, consisting of the shell's path, relative to root.
A hash mark (#) indicates the beginning of a comment; subsequent characters up to the end of the line are not interpreted by the routines
which search the file. Blank lines are also ignored.
The following default shells are used by utilities: /bin/bash, /bin/csh, /bin/jsh, /bin/ksh, /bin/ksh93, /bin/pfcsh, /bin/pfksh, /bin/pfsh,
/bin/sh, /bin/tcsh, /bin/zsh, /sbin/jsh, /sbin/sh, /usr/bin/bash, /usr/bin/csh, /usr/bin/jsh, /usr/bin/ksh, /usr/bin/ksh93, /usr/bin/pfcsh,
/usr/bin/pfksh, /usr/bin/pfsh, and /usr/bin/sh, /usr/bin/tcsh, /usr/bin/zsh, and /usr/sfw/bin/zsh. /etc/shells overrides the default list.
Invalid shells in /etc/shells could cause unexpected behavior, such as being unable to log in by way of ftp(1).
FILES
/etc/shells list of shells on system
SEE ALSO vipw(1B), ftpd(1M), sendmail(1M), getusershell(3C), aliases(4)SunOS 5.11 20 Nov 2007 shells(4)
... Am I glad to find this forum (and vBulletin too, nice!)..
OK, here's my issue. I have been handballed a bash script, not pretty but functional. I need to change to csh and zsh. For the csh I have the basics (e.g., such as change if/fi to if/endif, quote the variables, and bracket commands).... (10 Replies)
HI,
I would like to ask You about some good books or links where I can find information about shells, theoretical information.
I will be grateful if You can help me
And I have question about zsh loop
trivial script:
#!/bin/zsh
for i in {1..100000}
do
echo $i;
doneexec time is 10... (9 Replies)
Hi all
i am forced to use tcsh at work but i want to use zsh, so i have added this to my .cshrc
if (! $?STARTTCSH) then
if ("$tty" != "" && -x /bin/zsh) exec /bin/zsh
exit
endif
but this now stopped me going back to tcsh if i need to, is there a way to do this, i would... (7 Replies)
I'm running Mac OS, using the latest version of zsh.
I've noticed that I have funny tab-completion behavior when inside a screen session.
Specifically, once I press tab, the first part of my command seems to be duplicated before the completion results are inserted.
For example, if I type... (14 Replies)
Hi, I just updated /etc/passwd so that my default shell is zsh. After I save and make a new connection I can echo $SHELL and see /usr/bin/zsh, but my prompt still looks like bash and some env var that I setup in my local .zshrc file are not set. If I type zsh, then my prompt changes and I have my... (7 Replies)
I have a zsh script written by someone else, I am trying to modify it to work on slightly different data -problem is I know nothing about shell scripting.
I am trying to muddle through this myself since I need to learn but can someone tell me how to debug a script? ie. I want to display the value... (6 Replies)
Hi there
is there a way i can add to my .zshrc so that when i type rsh <tab> it takes the name for a list of hosts
i know it looks in .ssh/know_hosts but i want it for rsh and for a list that i supply
thanks
A (4 Replies)
Command expansions are pretty useful in some situations, however, I am not understanding why expansions do not update files, folders, directories, or even the current time, when there are placed in variables. For example:
#create variable
d=$(date)
result
echo $d
Fri Jun 14 15:48:04... (8 Replies)
Hi,
I would like to run following code in bash inside a zsh script. (In this case is output unfortunately very different if you run it in zsh).
I tried to put "bash" in front of the code but I obtained following error message "bash: do: No such file or directory
" eve though I merged the whole... (7 Replies)
Hello,
I've been trying to find the answer to this with Google and trying to browse the forums, but I haven't been able to come up with anything. If this has already been answered, please link me to the thread as I can't find it.
I've been asked to write a script that pulls a list of our CPE... (51 Replies)
I have in one shell variable, op, a string which represents a "test operator" in a ] construct, for instance -d or -n or -s, an in another shell variable, arg, some arbitrary string. What I want to achieve, is basically this:
#This is INCORRECT code. I just want to get you the idea, what I'm... (7 Replies)
I have a Zsh script which invokes another program. One of the paramters to be passed, should be a literal tab, i.e what in common programming languages is often written as "\t".
If it were bash, I think I could use the special form
$"\t"
but this doesn't seem to work (the called program... (5 Replies)
Note: This posting is related to my posting at bash - Reading answer to control string sent to xterm - Stack Overflow , but I could get there a solution only for bash. I can use that solution, but for curiosity, I wonder, whether I could do this in Zsh as well.
The problem is to send a (Posix-)... (6 Replies)
Interestingly Apple has decided to switch the default shell for new users from bash to zsh in MacOS Catalina (10.15)
Use zsh as the default shell on your Mac - Apple Support
Another interesting fact is that Catalina also comes with /bin/dash (5 Replies)