[CentOS] bash - safely pass untrusted strings?
Garrick Staples
garrick at usc.eduTue Feb 26 23:54:41 UTC 2008
- Previous message: [CentOS] bash - safely pass untrusted strings?
- Next message: [CentOS] Re: bash - safely pass untrusted strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Tue, Feb 26, 2008 at 03:30:02PM -0800, Benjamin Smith alleged: > File script3.sh contains the following: > $ cat script3.sh > #! /bin/sh > for file in $* > do > ls -l "$file"; > done Use "$@" instead of $*. It will split up the way you want. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080226/c339f8e8/attachment-0001.sig>
- Previous message: [CentOS] bash - safely pass untrusted strings?
- Next message: [CentOS] Re: bash - safely pass untrusted strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list