It's always good to be specific when you describe a problem.
Please post (as a reply in this thread) a short script that demonstrates the problem, the path that you enter, and the exact error message you get.
For example, I tried this script:
Code:
#!/bin/sh
read -p "File: " PATH_TO_FILE
echo $PATH_TO_FILE
and I entered this path (300 characters):
Code:
/000000010/000000020/000000030/000000040/000000050/000000060/000000070/000000080/000000090/000000100/000000110/000000120/000000130/000000140/000000150/000000160/000000170/000000180/000000190/000000200/000000210/000000220/000000230/000000240/000000250/000000260/000000270/000000280/000000290/000000300
and got no error at all. It echoed the path correctly.
A good thing to do is to use the
script command to record all input and output. Then take the file
typescript and post it as code (going to advanced posting mode and using the
# button), like this:
Code:
wally:~$ script
Script started, file is typescript
wally:~$ cat tuesday.sh
#!/bin/sh
read -p "File: " PATH_TO_FILE
echo $PATH_TO_FILE
wally:~$ tuesday.sh
File: /000000010/000000020/000000030/000000040/000000050/000000060/000000070/000000080/000000090/000000100/000000110/000000120/000000130/000000140/000000150/000000160/000000170/000000180/000000190/000000200/000000210/000000220/000000230/000000240/000000250/000000260/000000270/000000280/000000290/000000300
/000000010/000000020/000000030/000000040/000000050/000000060/000000070/000000080/000000090/000000100/000000110/000000120/000000130/000000140/000000150/000000160/000000170/000000180/000000190/000000200/000000210/000000220/000000230/000000240/000000250/000000260/000000270/000000280/000000290/000000300
wally:~$ exit
Script done, file is typescript
Once we see this, we can get a better handle on your problem.
Oh. And. What do you mean by auto-adding, and can you give an example of what that might be like?