Eric Leroy et Valérie Lalanne wrote:
> 10.5.8
>
> i have :
>
> iMac-de-Maison:~ maison$ ls -l /usr/bin/sed
> -rwxr-xr-x  1 root  wheel  136760  4 jul 16:55 /usr/bin/sed
> iMac-de-Maison:~ maison$ pkg
> pkg-config       pkg-config.real  pkgutil        
> iMac-de-Maison:~ maison$ pkgutil --file-info /usr/bin/sed
> volume: /
> path: usr/bin/sed
>
> pkgid: com.apple.pkg.BaseSystem
> pkg-version: 10.5.3.1.1.1191932192
> install-time: 1235463206
> uid: 0
> gid: 0
> mode: 100555
>
> pkgid: com.apple.pkg.update.os.10.5.6.combo
> pkg-version: 1.0.1.1191932192
> install-time: 1235467285
> uid: 0
> gid: 0
> mode: 100555
> iMac-de-Maison:~ maison$ /usr/bin/sed --version
> GNU sed version 4.1.4
> Copyright (C) 2003 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE,
> to the extent permitted by law.
>
>

<snip>

Aha!  There's your problem.  You, or something that you installed,
overwrote Apple's sed with GNU sed, and the "file" package is explicitly
set up to use Apple's.  Apple's sed will give the following:

$ /usr/bin/sed --version
/usr/bin/sed: illegal option -- -
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ...
[file ...]

You're going to need to get a copy of Apple's sed from somewhere.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to