Find the answer to your Linux question:
Results 1 to 6 of 6
m doing Engg n m from India.. i got to build my own linux shell for my project... how do i start with......
  1. #1
    Just Joined!
    Join Date
    Jul 2010
    Posts
    7

    how to create my own C shell??

    m doing Engg n m from India..
    i got to build my own linux shell for my project...
    how do i start with...

  2. #2
    Just Joined!
    Join Date
    Jul 2010
    Posts
    53
    you can simple shell to read from 0 and write to 1
    else grab sources to shell you like the most as a starting point

    must add your shell to /etc/SHELLS to make it a login shell

  3. #3
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    As per the terms of use of these forums, help with school/class assignments/projects is not allowed. Please don't ask us to do your work for you. That is why you are going to school and taking these classes...
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  4. #4
    Just Joined!
    Join Date
    Jul 2010
    Posts
    7
    Quote Originally Posted by chaosless View Post
    you can simple shell to read from 0 and write to 1
    else grab sources to shell you like the most as a starting point

    must add your shell to /etc/SHELLS to make it a login shell
    can u plzz suggest me a book where i can get some help.. thanks in advance..

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,974
    You can find out more about the c-shell from books like this (from Amazon.com): https://www.amazon.com/Unix-C-Shell-...dp/013937468X/
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Linux Newbie theNbomr's Avatar
    Join Date
    May 2007
    Location
    BC Canada
    Posts
    150
    If the basic purpose of a shell is to interpret user's commands, and launch other processes, then you will want to do some studying on the use of readline(), and fork() plus exec() family of functions. You may also benefit from understanding the concept of environment and its contents. As most shells are also interpretive programming environments, you may also want to learn about the likes of lexical analysers and parsers, and the tools one uses to generate them (lex & yacc). When you understand most of these things, writing your shell should come fairly easily.
    --- rod.
    Stuff happens. Then stays happened.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...