07-14-2005
It's ok, I guess, but I'll move it to the links section. What system did you test on? Only a very few shells will allow like:
if [ this == that ]
most shells that support the bourne syntax do allow:
if [ this = that ]
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello Experts.
I am searching for a tutorial about scripting in tcsh. After reading the tutorial I am supposed to write simple shell scripts : One that recives two arguments - a number and a string and prints to stdout all file names in current directory that end with the given string and... (1 Reply)
Discussion started by: SoHo
1 Replies
2. Shell Programming and Scripting
please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies
3. Shell Programming and Scripting
Hello.
I need a good & complete Bourne shell tutorial.
Please, can anyone help me to find it?
Thanks. (1 Reply)
Discussion started by: jag
1 Replies
4. Shell Programming and Scripting
Anyone have any links to good tutorial like sites that they keep going back to? Post them here please! (2 Replies)
Discussion started by: MrSuperFantastc
2 Replies
5. Shell Programming and Scripting
Hi All,
I have started preparation of Shell script...Can anybody send me the link
where I can get a right tutorial or pdf file of shell script...
Thanks in Advance (2 Replies)
Discussion started by: kunalpatil09
2 Replies
6. Shell Programming and Scripting
Hi
How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies
7. What is on Your Mind?
Hi all,
I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first.
Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies
8. Web Development
i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
9. UNIX for Dummies Questions & Answers
hey guys,
what is prolly the best way to learn bourne shell programming the easy way?
I found many tutorials but I just cant seem to decide / chose which one is the best and suits my needs.
could you recommend me some tutos?
thanks (1 Reply)
Discussion started by: genius90
1 Replies
10. Web Development
A number of people have asked me how to get started with Vue.js and my reply before today was to Google "Vue.js". That has changed and my recommendation to anyone who wants to learn the fastest growing, easiest to learn and use Vue.js web dev framework is to watch this video tutorial series:
... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT NETBSD
getusershell
GETUSERSHELL(3) BSD Library Functions Manual GETUSERSHELL(3)
NAME
getusershell, setusershell, endusershell -- get valid user shells
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <unistd.h>
char *
getusershell(void);
void
setusershell(void);
void
endusershell(void);
DESCRIPTION
The getusershell() function returns a pointer to a valid user shell as defined by the system manager in the shells database as described in
shells(5). If the shells database is not available, getusershell() behaves as if /bin/sh and /bin/csh were listed.
The getusershell() function reads the next line (opening the file if necessary); setusershell() rewinds the file; endusershell() closes it.
FILES
/etc/shells
DIAGNOSTICS
The routine getusershell() returns a null pointer (0) on EOF.
SEE ALSO
nsswitch.conf(5), shells(5)
HISTORY
The getusershell() function appeared in 4.3BSD.
BUGS
The getusershell() function leaves its result in an internal static object and returns a pointer to that object. Subsequent calls to
getusershell() will modify the same object.
BSD
November 23, 2004 BSD