Computing.Net > Forums > Unix > Stop Shell intepret DOS filenames

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Stop Shell intepret DOS filenames

Reply to Message Icon

Name: BPeacocke
Date: November 1, 2004 at 03:11:10 Pacific
OS: UNIX
CPU/Ram: NA
Comment:

If I pass a DOS filename to a ksh script in Solaris it interprets the "\t" from C:\testfile (for example) as a TAB.
Anyone know a way to prevent the shell from doing this - or at least getting the correct filename within a script?

Bernard Peacocke



Sponsored Link
Ads by Google

Response Number 1
Name: thepubba
Date: November 1, 2004 at 07:20:26 Pacific
Reply:

Try putting this in your shell:

set -o noglob

If that doesn't work (I can't imagine why it wouldn't) try:

C:\\testfilename


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: Stop Shell intepret DOS filenames

Bash Shell Script www.computing.net/answers/unix/bash-shell-script/8258.html

Long Listing in C-Shell www.computing.net/answers/unix/long-listing-in-cshell/4318.html

shell script help www.computing.net/answers/unix/shell-script-help/6292.html