It justs checks if you have the KNOPPIX directory, if you don't it assumes you have a hd-install and searches different paths...
Mount the uci, copy all files to a writable directory, unmount the uci..Again the same result. I repeat my steps.
1. Mounted the uci (/opt/man/) 2. Copied it to /man/ 3. Replaced the man.sh 4. Unmounted the uci (There is no longer an /opt/man/.) 5. Moved /man/ to /opt/. => /opt/man/ 6. Deleted /man/ 7. Executed "man *" in the terminal. => same result
Maybe i understood something wrong, or?By using the command "man something", you are using the man executable found first during a path search. It is most likely the original man perl script.
If you want to use that specific command (man *) with WDef's script, that script must be found in your PATH before the perl version is found. There are several solutions to this, but I'd say the easiest would be to create an alias:
alias man='/path/to/man.sh'
However, it doesn't look like WDef's script accepts commandline parameters, so you may still need to use just "man" and then type in what manpage you want when you are prompted for it.nvm :P (mikshaw beat me to it)
------
btw, if you wanted to edit WDef's scripts to accept command line args, you could do something like
Code Sample
if [ $# -ne 0 ]; then manpage=$@ else echo "What manual page do you want?" read manpage fi exec /opt/man/bin/man "$manpage"
I give it up. Did the following things.:
1. Loaded the man.uci 2. Created an alias: alias man='/opt/man/man.sh' 3. Executed man ... => Again error messages:
"shell-init: could not get current directory: getcwd: cannot access parent directories: No such file or directory /usr/bin/less: invalid option --i"...
Maybe the easiest solution would be to create a man page dsl file. I am not so confident, if i beginn to hack my linux. But thanks for your supply, learned again something.Next Page...
original here.