Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

well-formed mkdir in shell script 1

Status
Not open for further replies.

DaveC426913

Programmer
Jul 28, 2003
274
CA
Running FreeBSD.

I have this in a simple shell script:

mkdir -m 775 /usr/local/
It creates a folder called /foob-03?/

Why the '?'?

foob-03 show up with ls -la, but it does not show up in Webmin.

Clearly, my syntax is incomplete and it doesn't quite know what to do. Could it simply be a lousy carriage return? I tried the command directly in the shell and it worked OK.
 
It looks like a possible control-char has been included in the script. Can you edit it to take it out and reinsert making sure you don't hit any ctrls on the way?
 
Sigh. I shoulda knowed that.

I really have to stop editing in Notepad.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top