Re: shell variable security

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

 



On Wed, 2007-10-03 at 18:01 +0000, tony.chamberlain@xxxxxxxxx wrote:
> 
> 
> I guess I was asking in general how you can be sure your variables are
> safe.
> 
> Maybe it is more complicated than that?  I really have just heard
> warnings from
> 
> everyone, so I was taking pre-emptive measures.
> 
>  
> 
> I tried a few things myself too and also could not get that problem.
> 
>  
> 
> I tried making a file called test and doing things like
> 
Nevere, uss an internal commande an object called test in a shell
script. test is an internal test command.

In fact never name any file in Linux,test.
> 
>      K="$1"
> 
>      echo $K
> 
>  
> 
>  
> 
> and then calling
> 
>  
> 
>      test "hello\";date"
> 
>  
> 
> a nd
> 
>     FIL="$1"
> 
>     ls $FIL
> 
>  
> 
> but that seemed to be OK 
> 
> -- 
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
--
=======================================================================
Rincewind looked down at him and grinned slowly. It was a wide, manic,
and utterly humourless rictus. It was the sort of grin that is normally
accompanied by small riverside birds wandering in and out, picking
scraps out of the teeth. -- Terry Pratchett, "The Lure of the Wyrm"
=======================================================================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@xxxxxxxxxxxxx


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux