![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bad magic number on /dev/md0 | ravinandan | UNIX for Advanced & Expert Users | 0 | 08-17-2007 07:56 AM |
| LVM magic number 0x4D48 | ghimanshu | Filesystems, Disks and Memory | 2 | 07-18-2007 08:27 AM |
| Bad Magic Number | wesweshahaha | Filesystems, Disks and Memory | 0 | 05-18-2006 01:28 PM |
| Bad magic number | batosai | SUN Solaris | 1 | 04-22-2006 11:29 AM |
| bad magic number | rein | UNIX for Advanced & Expert Users | 5 | 01-05-2005 11:27 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|||||
|
To answer the first question, this is to disable the option processing by sh. This means that if you pass any arguments to the script, sh will not try to interpret them itself, but will treat them as arguments.
To quote the BSD sh manual, Quote:
Cheers! P.S. BTW, the magic number only comprises the first 2 or 3 (both are legal) bytes in the file. The rest of the line tells the kernel what is to be used to interpret the rest of the file. Last edited by blowtorch; 07-08-2005 at 10:47 AM.. Reason: an aside about the magic number |
|
|||||
|
Quote:
Code:
struct magic_number {
unsigned short system_id;
unsigned short file_type;
};
typedef struct magic_number MAGIC;
|
|
|||||
|
Quote:
![]() Thanks for pointing that out Perderabo. |
| Sponsored Links | ||
|
|