bug-make
[Top][All Lists]
Advanced

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

[bug #56764] Different behavior of printf command executed from Makefile


From: Martin Dorey
Subject: [bug #56764] Different behavior of printf command executed from Makefile and from shell.
Date: Fri, 16 Aug 2019 20:23:34 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36

Follow-up Comment #1, bug #56764 (project make):

I get similar, but that's because my login shell is /bin/bash:

martind@swiftboat:~$ getent passwd martind | cut -f7 -d:
/bin/bash
martind@swiftboat:~$ 

... while:

lrwxrwxrwx 1 root root 4 Nov  8  2014 /bin/sh -> dash

Make will default to using /bin/sh:

martind@swiftboat:~$ /bin/sh -c "printf '\x00\x00\x8f\x60' | hexdump -C"
00000000  5c 78 30 30 5c 78 30 30  5c 78 38 66 5c 78 36 30 
|\x00\x00\x8f\x60|
00000010
martind@swiftboat:~$ /bin/bash -c "printf '\x00\x00\x8f\x60' | hexdump -C"
00000000  00 00 8f 60                                       |...`|
00000004
martind@swiftboat:~$ 

I'm mildly surprised that I haven't resorted to adding:

SHELL = /bin/bash

... to my makefiles.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56764>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]