11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Note<br />

<strong>Bash</strong> non gestisce correttamente la stringa doppia barra (//).<br />

Capitolo 31. Precauzioni<br />

Gli script <strong>Bash</strong>, scritti per i sistemi Linux o BSD, possono aver bisogno <strong>di</strong> correzioni per consentire la<br />

loro esecuzione su macchine UNIX commerciali (o Apple OSX). Questi script, infatti, fanno spesso uso<br />

<strong>di</strong> coman<strong>di</strong> e filtri GNU che hanno funzionalità superiori ai loro corrispettivi generici UNIX. Questo è<br />

particolarmente vero per le utility <strong>di</strong> elaborazione <strong>di</strong> testo come tr.<br />

Danger is near thee --<br />

Beware, beware, beware, beware.<br />

Many brave hearts are asleep in the<br />

deep.<br />

So beware --<br />

Beware.<br />

1. L’impostazione del bit suid dello script stesso non ha alcun effetto.<br />

A.J. Lamb and H.W. Petrie<br />

540

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!