GNU bug report logs -
#76743
BUGGY "cut" and "printf" with func arg $@
Previous Next
To reply to this bug, email your comments to 76743 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#76743
; Package
coreutils
.
(Tue, 04 Mar 2025 15:54:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
"G.K." <kreutzgoran <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 04 Mar 2025 15:54:02 GMT)
Full text and
rfc822 format available.
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 "$@"
😋
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#76743
; Package
coreutils
.
(Tue, 04 Mar 2025 16:20:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 76743 <at> debbugs.gnu.org (full text, mbox):
tag 76743 notabug
close 76743
stop
On 04/03/2025 14:24, G.K. wrote:
> 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
I don't know what you're trying to do with either cut or printf.
I don't think there is a bug here, perhaps a confusion with shell quoting.
Marking this as not coreutils related for now.
cheers,
Pádraig
This bug report was last modified 44 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.