How do you use it? give us an example. I don't think there is any special variable in the shell that maps to #$. So tell us what shell you are using as well.
Here is a link to shell's special variables, in case you want to look up:
Hi Gurus,
I am working in tcsh and i set the prompt with this.
set prompt = "$cwd>"
But I see teh prompt only gets reflected with the directory where I set the prompt. After i cd to another directory it still shows the old directory. Please advise (1 Reply)
i'm writing my own shell and implementing a few unix commands.
I'm using the readline() for input and strtk() to tokenize it. I need to implement the cwd command as an option in the shell..
Here's the layout :
while true do
Read a line of input using readline()
tokenize the input
switch... (1 Reply)
I need a one line command called cd (must also still function as cd) and will allow the prompt to change to the cwd. All I can figure out is to change the .cshrc but there must be an easier way in a one line command no? (1 Reply)