GNU bug report logs -
#76743
BUGGY "cut" and "printf" with func arg $@
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
HI THERE
any bash code to described the buggy form
attachment pic displayed standardout
https://www.facebook.com/100013673347475/posts/2029907180808374
I'AM USED TERMUX , ANDROID 11 ON FON GS4
#1
echo -e "1\n2\n3\n4"'' | tac | cut -zf-4
WILL NOT DISPLAYED 1LINE
🤔
to any command "cut" will this not
#2
#.sh
#$ . hashmark 1 2
fname(){
declare local IFS='#'
echo "var IFS local #1 $1 $2 , \$# $# , \$* $* , \$@ $@"
}
fname $1 $2
echo
printf "%s%s%s%s%s%s%s%s\n"'var IFS global #2 '"$1 $2"' , $# '"$#"' , $* '"$*"' , $@ '"$@"
echo
printf "\n%s%s"\$@ $@
echo
printf '$@'"%s"$@
echo
printf "%s%s"'$@ '$@
echo
printf "%s" $@
echo
printf "%s"$@
echo
printf "%s %s" "\$@" " $@ "
echo
WILL NOT CORRECT DISPLAYED "$@"
THE DIFFERENCE JUMPED IN LINES FROM "$@"
😋
This bug report was last modified 108 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.