delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/19/10:56:51

Date: Thu, 19 Aug 1999 15:08:40 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199908191308.PAA22763@acp3bf.physik.rwth-aachen.de>
To: K DOT Rdt AT TU-Berlin DOT DE (Klaus Reinhardt)
Cc: djgpp AT delorie DOT com
Subject: Re: Where change file name expansion?
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B
X-Newsreader: TIN [version 1.2 PL2]
Reply-To: djgpp AT delorie DOT com

In article <37BC5680 DOT F3E AT TU-Berlin DOT DE> you wrote:
> I would like to change the ls-behaviour as follows:

> 1.)	NOW:
> 	ls -l kopiev~1.exe
> 	-rwxr-xr-x   1 dosuser  root         6064 Aug 12 12:07 kopiev~1.exe
> 2.)	I WISH:
> 	-rwxr-xr-x   1 dosuser  root         6064 Aug 12 12:07 Kopie von ...
> 	(like: 	dir   kopiev~1.* 
> 		...
> 		kopiev~1 exe         6.064  12.08.99  12:07 Kopie von RDT_MIDI.EXE
>         	... 

The basic difference is not (as you imply in your subject) whether
long file names are used, or not. Unlike DOS's 'dir' command, displays
only *one* of the two filenames, and in an LFN environment, that will
be the long one, usually. But it will still be only *one* of the
file's two names.

Moreover, you explicitly asked for kopiev~1.exe, so that's what you
get.  Had you written 'ls -l kopie*', you'ld have gotten the long
name.

The real sillyness is in the filesystem having two semi-independent
names for each file. DJGPP tries hard to get over this, but there are
some situations where some gotcha invariably remains.

--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019