On Sun, Mar 18, 2007 at 09:50:16AM +0900, Charles Plessy wrote:
> Le Sat, Mar 17, 2007 at 01:02:46PM -0400, Justin Pryzby a écrit :
> > On Sat, Mar 17, 2007 at 08:12:47PM +0900, Charles Plessy wrote:
> > > Le Sat, Mar 17, 2007 at 12:00:20PM +0100, Florent Rougon a écrit :
> > > > Charles Plessy <[E
On Sun, Mar 18, 2007 at 09:50:16AM +0900, Charles Plessy wrote:
>
> Oh, this is something I did not think about. But what is the set -e
> doing?
>
Every script you write should include set -e at the top. This tells
bash that it should exit the script if any statement returns a
non-true
Le Sat, Mar 17, 2007 at 01:02:46PM -0400, Justin Pryzby a écrit :
> On Sat, Mar 17, 2007 at 08:12:47PM +0900, Charles Plessy wrote:
> > Le Sat, Mar 17, 2007 at 12:00:20PM +0100, Florent Rougon a écrit :
> > > Charles Plessy <[EMAIL PROTECTED]> wrote:
> > >
> > > > #!/bin/sh
> > > > echo -e "AMAP i
On Sat, Mar 17, 2007 at 08:12:47PM +0900, Charles Plessy wrote:
> Le Sat, Mar 17, 2007 at 12:00:20PM +0100, Florent Rougon a écrit :
> > Charles Plessy <[EMAIL PROTECTED]> wrote:
> >
> > > #!/bin/sh
> > > echo -e "AMAP is now available under /usr/bin/amap.\nThis wrapper
> > > (/usr/bin/amap-align
Charles Plessy a écrit :
#!/bin/sh
echo -e "AMAP is now available under /usr/bin/amap.\nThis wrapper
(/usr/bin/amap-align) will be removed in the future."
exec /usr/bin/amap "$@"
I am just wondering if the quotes around $@ are necessary...
indeed, they are:
$ cat quotes.sh
#! /bin/sh
for i
Le Sat, Mar 17, 2007 at 12:00:20PM +0100, Florent Rougon a écrit :
> Charles Plessy <[EMAIL PROTECTED]> wrote:
>
> > #!/bin/sh
> > echo -e "AMAP is now available under /usr/bin/amap.\nThis wrapper
> > (/usr/bin/amap-align) will be removed in the future."
> > exec /usr/bin/amap "$@"
>
> 'echo -e'
Charles Plessy <[EMAIL PROTECTED]> wrote:
> #!/bin/sh
> echo -e "AMAP is now available under /usr/bin/amap.\nThis wrapper
> (/usr/bin/amap-align) will be removed in the future."
> exec /usr/bin/amap "$@"
'echo -e' is not specified by POSIX. If you want to use escapes such as
\n, you'd better use
Le Sat, Mar 10, 2007 at 09:09:23AM -0500, Justin Pryzby a écrit :
> A NEWS entry isn't unreasonable. Supporting the old binary might be
> nice; a wrapper with a warning rather than a symlink is extra friendly.
> Be sure to use "exec" as the last line of a wrapper script to remove
> unnecessary me
On Sat, Mar 10, 2007 at 12:32:29PM +0900, Charles Plessy wrote:
> Dear mentors,
>
> When I created the package amap-align (bioinformatics), there was a
> already a program called "amap" in Debian. Therefore, I renamed the
> binary program of my package. However, the old amap package has been
> rem
Dear mentors,
When I created the package amap-align (bioinformatics), there was a
already a program called "amap" in Debian. Therefore, I renamed the
binary program of my package. However, the old amap package has been
removed from Etch, so I would like to know if it is possible to provide
our use
10 matches
Mail list logo