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

Re: shell di default per script.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

alberto, Mon, Feb 10, 2003 at 02:26:16PM -0800:
> L'utente in questione non vuole aggiungere lo shahbang. Non sa neanche lui 
> quanti script ha ereditati e dove siano. Sa che sono tcsh e vorrebbe questa 

il problema e' che non esiste un interprete di default per gli script,
proprio a livello concettuale...

e comunque un utente cosi' DSM. [1]
perche' imporre uno sbattimento simile per evitarsi la fatica di CINQUE
righe di script[2] da lanciare ogni qualvolta incontra uno script e' da
stronzi, visto anche che sprecarsi renderebbe il sistema un po' piu'
standard e portabile e aggiornabile.

[1] Deve Solo Morire

[2]
#!/bin/sh
[ -z $1 ] && exit
umask 022
(echo '#!/usr/bin/tcsh' ; cat $1) > $1.new
mv $1.new $!

poi se sai di averceli tutti in una directory fai un for e vai.
- -- 
pbm - "oh this rain it will continue till the morning as I'm listening
    -  to the bells of the cathedral - I am thinking of your voice"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+SFpOKFDpwG6aWbARAm8+AJ9N4nWe+w9GtgMD0evhS8nt/OVaIwCgmLDz
Rnz2svQJLzX/zqJFa3r1WOs=
=WLMb
-----END PGP SIGNATURE-----



Reply to: