Le mercredi 20 août 2008, François Cerbelle a écrit :
> $PWD/`dirname "$0"`

Ooops marche pas j'ai ça...

bash: PWD//bin: Aucun fichier ou répertoire de ce type

Faut dire que j'ai bêtement remplacé dans le script qui est devenu

#!/bin/bash
dir=$($PWD/`dirname "$0"`)
kdialog --msgbox $dir

La syntaxe est pas bonne ? Ce serait pratique, pourtant si ça voulait marcher.

-- 
Cordialement, Daniel Cartron
« Qui vole un oeuf, ferait mieux de voler un boeuf. »
Francis Blanche - Mon oursin et moi

_________________________________
Linux mailing list
[email protected]
http://lists.parinux.org/mailman/listinfo/linux

Répondre à