GNU bug report logs - #76743
BUGGY "cut" and "printf" with func arg $@

Previous Next

Package: coreutils;

Reported by: "G.K." <kreutzgoran <at> gmail.com>

Date: Tue, 4 Mar 2025 15:54:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: "G.K." <kreutzgoran <at> gmail.com>
To: 76743 <at> debbugs.gnu.org
Cc: info <at> ujz-korn.de
Subject: bug#76743: BUGGY "cut" and "printf"  with func arg $@
Date: Tue, 04 Mar 2025 15:24:31 +0100
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.