Jahshaka

Paweł Sakowski pawel at sakowski.eu.org
Sun Oct 26 22:47:12 CET 2003


> #!/bin/sh
> cd ~/.jahshaka || echo forgot to run jahshaka-install ??;exit
> jah
> cd

1. exit się zawsze wykona
2. Końcowy cd nic nie robi, bo cwd jest przypisany do procesu skryptu,
który za chwilę się kończy.
3. A może:

#!/bin/bash
if [ -d "$HOME/.jahshaka" ]; then
	%{_bindir}/jahshaka-install
fi
cd "$HOME/.jahshaka"
exec %{_bindir}/jah

-- 
+----------------------------------------------------------------------+
| Paweł Sakowski <pawel at sakowski.eu.org>            Never trust a man  |
|                            who can count up to 1023 on his fingers.  |
+----------------------------------------------------------------------+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Ceci est une partie de message num?riquement sign?e.
URL: </mailman/pipermail/pld-devel-pl/attachments/20031026/b9163d94/attachment.sig>


More information about the pld-devel-pl mailing list