10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: rovf
7 Replies
2. Shell Programming and Scripting
Hi Guys,
We are doing one production migration,
we have copied "/etc/shells" file form old to new server.
/etc/shells file contains below entries:-
bash-3.2# more /etc/shells
/bin/false
/bin/csh
/bin/jsh
/bin/ksh
/bin/rksh
/bin/rsh
/sbin/sh
/sbin/zsh
/usr/bin/zsh
/usr/bin/bash... (2 Replies)
Discussion started by: manalisharmabe
2 Replies
3. UNIX for Dummies Questions & Answers
I'd put together a zshrc for use on Linux & AIX 5/6 at another shop that worked fine, but when I tried to put it on here it messes up the colors for some reason I can't understand.
I used Phil's ZSH prompt for starters, and everything worked before, and still does on Linux, but isn't working on... (0 Replies)
Discussion started by: Vryali
0 Replies
4. UNIX for Advanced & Expert Users
Hi Guys
i have set the watch command on my shell
watch=all
but this will report when i open and close a shell, is there a way so that it will ignore me user but only when i am on my machine
i can set it to
watch=notme
but that will not detect if someone su -<my... (0 Replies)
Discussion started by: ab52
0 Replies
5. UNIX for Dummies Questions & Answers
Guys,
Can somebody help in setting vi as the default editor in zsh shell.
I know that in ksh and bourne we can achieve the setting through .profile file.
I want to replicate the behavior of ksh in zsh where on command prompt when one presses escape the screen acts as a vi.
And one can use all... (1 Reply)
Discussion started by: yabhi_22
1 Replies
6. Shell Programming and Scripting
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)
Discussion started by: cmp260
6 Replies
7. Shell Programming and Scripting
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)
Discussion started by: ab52
7 Replies
8. UNIX for Dummies Questions & Answers
Probably a stupid question... how do I use a wildcard in a variable in zsh? If I do:
var=*
echo $var
in bash, it will print all files/directories in the current directory. If I do it in zsh, it will only output an asterisk without the wildcard functionality. Thanks in advance! (1 Reply)
Discussion started by: RainbowLAr
1 Replies
9. UNIX for Dummies Questions & Answers
hi,
In bash,
$ bind -P | grep yank-last
yank-last-arg can be found on "\M-.", "\M-_".
this allows me to press ALT key and the period (.) to yank the last argument of
the previous command line into the current command line.
How can I get the same behavior in zsh ?
Thanks ... (0 Replies)
Discussion started by: Andrewkl
0 Replies
10. Shell Programming and Scripting
hi there
I'm looking for tutorials about zsh (beginners to experts)
can you give me addresses please?
thx a lot (3 Replies)
Discussion started by: SpY974
3 Replies