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

Re: safe way to set a path



Goedson Teixeira Paixao (2001-08-06 13:41:15 -0300) :

> 	I use the following code to add to the values of my PATH variables.
[...]
>   for __item__ in `echo $__value__|sed 's/:/ /g'`

What happens if you try to add a directory name with embedded spaces?
I think it won't work if it's already present (it'll be re-added).

Roland.
-- 
Roland Mas

[...] ou une dent pourrie [...] -- in Variations sur un thème imposé
  -- Signatures à collectionner, série n°2, partie 2/3.



Reply to: