Ticket #5313: shellPosixRedirection.patch

File shellPosixRedirection.patch, 2.0 KB (added by mmadia, 14 years ago)

replaces '&>' with '> /dev/null 2>&1'

  • data/bin/which

     
    11#!/bin/bash
    22
    3 . /etc/profile &> /dev/null
     3. /etc/profile > /dev/null 2>&1
    44
    55whence $*
    66
  • data/bin/installoptionalpackage

     
    234234        cd ${baseDir}
    235235        local baseURL=http://dev.haiku-os.org/export/
    236236        local revision=`uname -v | awk '{print $1}' | sed -e 's/r//'`
    237         wget ${baseURL}${revision}/haiku/trunk/build/jam/${file} &> /dev/null
     237        wget ${baseURL}${revision}/haiku/trunk/build/jam/${file} > /dev/null 2>&1
    238238    fi
    239239}
    240240
  • data/bin/install-wifi-firmwares.sh

     
    301301
    302302    # Build b43-fwcutter.
    303303    echo "Compiling b43-fwcutter for installing Broadcom's firmware ..."
    304     make PREFIX=/boot/common CFLAGS="-I. -Wall -D_BSD_SOURCE" &> /dev/null
     304    make PREFIX=/boot/common CFLAGS="-I. -Wall -D_BSD_SOURCE" > /dev/null 2>&1
    305305    if [ ! -e b43-fwcutter ] ; then
    306306        return 1
    307307    fi
     
    323323
    324324    # Cut firmware in pieces.
    325325    cd "$tempDir"
    326     b43-fwcutter $file &> /dev/null
     326    b43-fwcutter $file > /dev/null 2>&1
    327327
    328328    # Rename the pieces.
    329329    cd b43legacy
  • build/scripts/build_haiku_image

     
    3434
    3535# If the haiku image path is a symlink resolve it now (makebootable needs the
    3636# path of the actual device path under Linux).
    37 if readlink -f "$imagePath" 2>&1 > /dev/null; then
     37if readlink -f "$imagePath" > /dev/null 2>&1; then
    3838    normalizedImagePath=$(readlink -f "$imagePath")
    3939    if [ "$normalizedImagePath" ]; then
    4040        imagePath="$normalizedImagePath"