bug-bash
[Top][All Lists]
Advanced

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

Fwd: bash not using pipes or /tmp @ boot?


From: Linda Walsh
Subject: Fwd: bash not using pipes or /tmp @ boot?
Date: Mon, 06 Oct 2014 15:03:24 -0700
User-agent: Thunderbird

Not sure how but this went off into space, sorta...

Greg Wooledge wrote:
On Mon, Oct 06, 2014 at 12:14:57PM -0700, Linda Walsh wrote:
   done <<<"$(get_net_IFnames_hwaddrs)"

Where am I using a HERE doc?

<<< and << both create temporary files.
----

        Yeah... where?

assign_netif_names=/etc/init.d/boot.assign_netif_names start
/etc/init.d/boot.assign_netif_names#208(read_actuals)> typeset -p act_hw2if
declare -A act_hw2if='()'
/etc/init.d/boot.assign_netif_names#209(read_actuals)> typeset -p act_if2hw
declare -A act_if2hw='()'
/etc/init.d/boot.assign_netif_names#210(read_actuals)> du -s /tmp /var/tmp
27776 /tmp
13156 /var/tmp
/etc/init.d/boot.assign_netif_names#211(read_actuals)> date +%Y%m%d.%H%M
/etc/init.d/boot.assign_netif_names#211(read_actuals)> touch 
/tmp/boot-20141006.1418
/etc/init.d/boot.assign_netif_names#212(read_actuals)> ls -l 
/tmp/boot-20141006.1418
-rw-r--r-- 1 root root 0 Oct  6 14:18 /tmp/boot-20141006.1418

^^^ tmp is writeable.  (so is var/tmp)

The output: (6 lines...)
/etc/init.d/boot.assign_netif_names#204(read_actuals)> get_net_IFnames_hwaddrs
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth0 
00:15:17:bf:be:b2
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth1 
00:15:17:bf:be:b3
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth2 
00:26:b9:48:71:e2
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth3 
00:26:b9:48:71:e4
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth4 
a0:36:9f:15:c9:c0
/etc/init.d/boot.assign_netif_names#193(get_net_IFnames_hwaddrs)> echo eth5 
a0:36:9f:15:c9:c2
/etc/init.d/boot.assign_netif_names: line 204: cannot create temp file for here-document: No such file or directory

----
Maybe if bash didn't create tmp files in non-standard locations,
this never would have been an issue (or just use pipes)..










reply via email to

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