A bad thing about ALFS in c

John Schmerge schmerge at speakeasy.net
Tue Nov 6 02:19:07 PST 2001



void
doStuff(void)
{
	putenv("LFS=/mnt/lfs");
	system("cd $LFS; ls");
}

On Mon, 5 Nov 2001, Felipe Contreras wrote:

> On Mon, Nov 05, 2001 at 04:14:27PM -0800, John Schmerge wrote:
> > Why not just use system(3) ?
>
> Let's supose you want to execute this.
>
> 	export LFS=/mnt/lfs
> 	cd $LFS
> 	ls
>

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe alfs-discuss' in the subject header of the message



More information about the alfs-discuss mailing list