IFS bug (maybe)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello.

I still stick to that $IFS stuff, and see another difference for
dash (0.5.12) compared to bash and busybox sh:

  a() {
    echo $#,1=$1,2=$2,"$*",$*,
  }
  echo ,"$*"$* $*,
  set -- a b c
  echo ,"$*"$* $*,
  IFS=:;echo ,"$*"$* $*,;unset IFS
  echo 1
  echo "$*"$*; a $* "$*"
  echo 2
  IFS=:; echo "$*"$*; a $* "$*";
  echo 3
  IFS=; echo "$*"$*; a $* "$*";
  echo 4
  IFS= ; echo "$*"$*; a $* "$*";
  echo 5
  IFS="	"; echo "$*"$*; a $* "$*";
  echo 6
  IFS='
  '; echo "$*"$*; a $* "$*";
  echo 7
  IFS="\011"; echo "$*"$*; a $* "$*";
  echo 8
  IFS="\012"; echo "$*"$*; a $* "$*";

and that is

  @@ -27,8 +27,5 @@ a
   b
   c,a b c a b c,
   7
  -a\b\ca b c
  -4,1=a,2=b,a\b\c\a\b\c,a b c a b c,
  -8
  -a\b\ca b c
  -4,1=a,2=b,a\b\c\a\b\c,a b c a b c,
  +4,1=a,2=b,8
  +4,1=a,2=b,a
  \ No newline at end of file

--steffen
|
|Der Kragenbaer,                The moon bear,
|der holt sich munter           he cheerfully and one by one
|einen nach dem anderen runter  wa.ks himself off
|(By Robert Gernhardt)




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux