[Info-vax] Still no DIR/SORT_BY_TIME
George Cornelius
cornelius at eisner.decus.org
Sat Aug 15 02:43:41 EDT 2015
In article <mqfrbo$6oh$1 at dont-email.me>, Stephen Hoffman <seaohveh at hoffmanlabs.invalid> writes:
> On 2015-08-12 14:42:05 +0000, David Froble said:
>
>> alanfeldman48 at gmail.com wrote:
>>> Just checked
>>> http://h30266.www3.hp.com/odl/axpos/opsys/vmsos84/9996/9996pro_63.html#blue_73
>>>
>>>
>>> Still can't sort directory listings by time.
>>
>> It's called "programming". Sometimes you have to do it yourself ..
>>
>> :-)
>
> $ product install gnv
> $ ls :== $gnv$gnu:[bin]ls
> $ ls -t
I have avoided gnv over the years.
Seems a dba who had full privileges - someone who eventually became
a member of the system administrators' team I am on - ran a script
against files in SYS$SYSROOT, and, due to dollar signs in filenames/
filespecs (I forget where now), wound up deleting a lot of files out
of SYS$SYSTEM.
Bash and VMS style filenames would seem to be an invitation to
disaster if you were to transfer certain *nix scripting practices
over to gnv bash.
I remember ages ago not thinking twice about doing things like
for i in `ls -d /tmp/*.exe` ; do echo "mv $i ${i}_sv" ; done >script1.sh
chmod +x script1.sh
./script1.sh
before I learned that this is dangerous because $i might contain shell
characters, including dollar signs - and that's just in *nix where
dollar signs in filenames is hopefully a rare situation.
George
> --
> Pure Personal Opinion | HoffmanLabs LLC
More information about the Info-vax
mailing list