Re: Spaces in file and directory names.



On 14 Dec 1998, Gisli Ottarsson wrote:

>  % touch "First File" "Second File"
>  % foreach file (*)
>  %   ls $file
>  % end
>  ls: First: No such file or directory
>  ls: File: No such file or directory
>  ls: Second: No such file or directory
>  ls: File: No such file or directory
> 
> Spaces at the end of file names are also good for a few laughs.
> 
> I am not advocating disallowing spaces in file names, just suggesting
> that Gnome should not promote this bad idea.  I am pleased to hear
> that the standard gnome directories will not contain names with
> embedded spaces.

% touch "1 2 3" "a b c"
% for i in *
for> do
for> ls -l $i
for> done
-rw-r--r--   1 tlewis   tlewis          0 Dec 14 16:15 1 2 3
-rw-r--r--   1 tlewis   tlewis          0 Dec 14 16:15 a b c
%

Maybe you need to get a better shell.  I don't see any problem at
all with spaces in file names.

-- 
Todd Graham Lewis       tlewis@mindspring.net      (800) 719-4664, x2804

"It's still ludicrous that nobody's ever made a run at us by making UNIX
 a popular platform on PCs.  It's almost too late now."  -- Steve Balmer
"It is too late."   -- Bill Gates             _Newsweek_, 6/23/97, p. 82



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]