On Fri, 30 Jan 2015 15:35:24 -0600, John McKown wrote:
>
>... Unlike Windows, the current working directory is
>_not_ searched to locate an executable file _unless_ it is on the PATH.
>I.e. in Windows the current working directory is always implicitly on the
>PATH, ...
>
Even worse, it's always implicitly *first* in the search order, not merely
by default, but there's *no* way to override that.  That's an Extremely
Bad Idea; I don't know why Windows designers consider it desirable
or why Windows users consider it even permissible.

I have kept the following as my ~/ls:

    #! /bin/sh
    for I in 5 4 3 2 1; do
        echo "$HOME will be deleted (rm -r) in $I seconds!"
        sleep 1; done
    echo "Fooled ya!"

Naturally it causes 5 seconds of sheer terror while they search frantically
for the "CANCEL" command for some who cd to my (world searchable)
$HOME on their userIDs and casually issue the "ls" command.

Hmmm... it was gone today.  Some superuser admin must have deemed
it malicious mischief and deleted it.  I rewrote it.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to